CLOUD9的NodeJS - 错误:写EPROTO 140261073610560.和本地主机就一切OK
问题描述:
我有这样的脚本: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:
这样我就可以解决呢?
答
的问题是在港口
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
,所以我取代了8000
到8080
和9000
到8081
和它的作品!
我注意到你在c9上使用HTTPS,而本地主机是http。这会对结果产生影响吗? – Mutahhir