Closed catmando closed 1 year ago
Version 2 of the library made a change to use TLS by default. Are you setting use_tls: false
when instantiating the object? For example
require 'pusher'
pusher = Pusher::Client.new(
app_id: 'your-app-id',
key: 'your-app-key',
secret: 'your-app-secret',
cluster: 'your-app-cluster',
use_tls: false
)
We haven't had a response here so will close this out - if you need further support please get in touch at https://support.pusher.com/hc/en-us/requests/new
This combination breaks with the following error:
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: wrong version number
This is in our test environment which is running HTTP (not HTTPS) and uses PusherFake and WebMock. Somewhere along the line, it is trying to use SSL.
I fixed it by downgrading to Pusher 1.4.3 and the problem goes away.
Here is the stacktrace:
I tried to debug this a bit, but I just can't get very far. I am sorry I don't have a more simplified test case, but this is part of an upgrade of a large app, which I am behind on.