ssl connect not work on Rails but works in standalone ruby script -


I remove the code from the service object in my Rail app.

Error me # & lt; OpenSSL :: SSL :: SSLError: SSL_connect SYSCALL = 5 errno = 0 state = read SSLv3 server Hello A & gt; Under the railway

I think the error is with the rail app setting,

because I can run this code completely out of the rail.

  requires 'rest_client' module server DRA rest_query (server_url, header, content) start resp = restClient.post (Server_url, content, header) {code: resp.code, header: Resp.raw_headers, body: resp.body} rescue exception => E return {code: @@ unknown_error_code, header: nil, body: @@ unknown_error_msg} and start server df in end and class portal @server_url = "https://154.210.16.60:443/" @header = {"Accept "= & Gt; "App / Jason", "Content-type" = & gt; "Session / id = Raw_content.squeeze ('') if: rest == conn_type return rest_query (@server_url, header, content) elsif: curl == conn_type return curl_query (@server_url, header, content) end-end raw_content = '{"ServiceID": "Login", "user id": "anny.ping@yahoo.com", "password": "98765413df321"} 'portal = portal.new  

jeffile

  Mani 'Rail', '4.1.6' Mani 'Curb' Mani 'Relief_mental' Mani 'httpclient'  


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -