Closed gustiando closed 5 years ago
Searching through the pusher-js code implies it's an interrupted connection. Do you know if it's connecting at all?
Also, looks like you're using v2.2 of the client, but v4.4 is the latest. Could you try updating and see if that helps any?
thanks @tristandunn ! It does connect most of the time I believe. The logs also have spec runs where pusher is able to stay connected and do its job. Below is another example form the logs:
[1557376080.584][DEBUG]: DevTools WebSocket Event: Network.webSocketFrameReceived 2CB7BC797DAC8628CC4E3EE05DBBB45E {
"requestId": "1000074727.252",
"response": {
"mask": false,
"opcode": 1,
"payloadData": "{\"event\":\"pusher:connection_established\",\"data\":\"{\\\"socket_id\\\":\\\"7011936.1687920\\\",\\\"activity_timeout\\\":120}\"}"
},
"timestamp": 23792.453833
}
Upgrading to 4.4 was going to be my next attempt indeed. I'm currently unfamiliar with Pusher, but am starting to look into what it would take for the upgrade to happen seamlessly. Any recommendation for such a major upgrade?
Interesting that it's not always happening. What are you running the tests in?
And I don't believe I've had very many issues, at least no major issues that I can recall, when upgrading the library. The changes are generally clean up, bug fixes, and new features as opposed to breaking changes.
@tristandunn thanks for the guidance. I was able to successfully upgrade to 4.4. The issue I'm having now is a 500 on the server side when triggering the event:
SSL_connect returned=1 errno=0 state=SSLv3/TLS write client hello: wrong version number excluded from capture: DSN not set
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3/TLS write client hello: wrong version number):
Trigger example:
Pusher["channel-name"].trigger!('event-name', url: file_url, file_name: file_name)
This might not be related to pusher or pusher fake directly, but am curious if you've ever seen this.
Can you try disabling SSL?
That seem to have done it. I'll report shortly after merging the 4.4 upgrade and how is that looking in the Capybara flaky specs error logs we were seeing around Pusher. thanks!
@gumatias Great to hear! You might be able to disabled SSL without upgrading to 4.4 if that makes it easier.
Guessing this worked out, so closing.
Hello from a rabbit hole! 🕳🐇
After awhile digging through my test logs, I noticed Pusher has been failing quite a bit for a reason I'm not very familiar and unsure how to proceed.
Any ideas?
pusher version: 1.3.2 pusher-fake version: 1.12.0