Search code examples
node.jscloud9-ideproxy-server

cloud9 nodejs - Error: write EPROTO 140261073610560. and in localhost everything ok


I have this script from :

https://github.com/No9/harmon/blob/master/examples/simple.js

and if i run it node simple.js in my localhost everything work well. but in my cloud9 account i get:

Error: write EPROTO 140261073610560:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:

enter image description here

so i can i fix it?


Solution

  • The problem was in the ports

    Cloud9 hosted workspaces now allow workspaces to listen on multiple ports. The following ports are supported (along with the urls they can be accessed from):

    8080 -> https://-.c9users.io

    8081 -> https://-.c9users.io:8081

    8082 -> https://-.c9users.io:8082

    https://docs.c9.io/docs/multiple-ports

    so i replaced the 8000 to 8080 and 9000 to 8081

    and it works !