2016-10-10 69 views
0

我有这样的脚本:CLOUD9的NodeJS - 错误:写EPROTO 140261073610560.和本地主机就一切OK

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

,如果我在我的本地主机的一切运行node simple.js工作。但在我cloud9帐户我得到:

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

这样我就可以解决呢?

+0

我注意到你在c9上使用HTTPS,而本地主机是http。这会对结果产生影响吗? – Mutahhir

回答

0

的问题是在港口

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

,所以我取代了8000808090008081

和它的作品!