cloud9 nodejs-错误:编写EPROTO140261073610560.在localhost中一切正常 [英] cloud9 nodejs - Error: write EPROTO 140261073610560. and in localhost everything ok

查看:107
本文介绍了cloud9 nodejs-错误:编写EPROTO140261073610560.在localhost中一切正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个脚本来自:

所以我可以解决它吗?

解决方案

问题出在端口上

Cloud9托管的工作区现在允许工作区侦听多个端口.支持以下端口(以及它们可以提供的网址)可以从以下位置访问:

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

它有效!

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:

so i can i fix it?

解决方案

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 !

这篇关于cloud9 nodejs-错误:编写EPROTO140261073610560.在localhost中一切正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆