REST API makes bot crash #814
Comments
Hi, |
Hi, I'm going to take a look and see if I can solve this. |
@albabosh @ArnaudRitti what error did you get. What did you enter in the c.output.api.port? c.output.api = {} c.output.api = {} |
I get a Node Express error : |
The same I get "EADDRINUSE, Address already in use" |
Allright, still can't reproduce it. But @albabosh could you try the fix that @ArnaudRitti provided and see if that solves it for you. If that is the case then we should add that fix in a pull request |
My PR #850 integrate the fix |
It seems to happen only if strategy is set to 'neural' |
It is not fixed - it crashed in 'neural', because it open two sockets - on random it uses difference ports, but when you use a fixed port then fail the second socket because it use the same port |
When I put c.output.api.port (not 0) into config zenbot crashes at startup. port=0 works ok. It seems that REST API uses 2 ports. Could you give a correct example of api config ? Thanks
The text was updated successfully, but these errors were encountered: