BlocklyIO icon indicating copy to clipboard operation
BlocklyIO copied to clipboard

Problem

Open blazorin opened this issue 7 years ago • 3 comments
trafficstars

I installed it with npm, allowed port 8080 and installed WebSocket but it doesn't work: WebSocket connection to 'ws://185.62.188.252:8080/socket.io/?EIO=3&transport=websocket' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED check it here: 185.62.188.252/public

blazorin avatar Jun 07 '18 23:06 blazorin

Have you ran npm start or started up the server? Or maybe npm ran into some error? It seems like your port 8080 is closed, i.e. nothing is listening on that port. By the way, the server has actually two ports opened, one for http and one for the socket server, so they had to be opened using two different ports. I saw that you actually changed them to the same port number (I'm not sure if that works).

Maybe if that still doesn't work, maybe you could try changing the IP address to 0.0.0.0 to bind to all available interfaces, see if that resolves your issue.

Excited to see that you are interested in this project!

theKidOfArcrania avatar Jun 07 '18 23:06 theKidOfArcrania

npm ERR! [email protected] start: node server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script 'node server.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the blockly-io package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node server.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs blockly-io npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls blockly-io npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /var/www/html/npm-debug.log root@game-io:/var/www/html#

al is correct i dont know what to do

blazorin avatar Jun 10 '18 10:06 blazorin

do you have the log file located at /var/www/html/npm-debug.log

theKidOfArcrania avatar Jun 10 '18 11:06 theKidOfArcrania