Search code examples
node.jssslhttpsopenstack-swift

Node.js OpenStack Swift plugin connection error


I used NodeJS and Swift plugin I get this error when trying to implement connection

Can not connect to Swift! Error: write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:794

Seems that it's trying to use https, but I can't see in options to disable and use standard http.

Thanks.


Solution

  • You are right. This plugin by default uses https connection. So to change it to http you can edit the first requrie('https') in librarie's swift.js file into requrie('http') :

     var https = requrie('http')