Open Aryk opened 2 years ago
Sorry, but how is this used in your workflow? I'm doing something like
client = Exponent::Push::Client.new
...
...
client.send_messages messages
Is your code supposed to monkeypatch Typhoeus?
No monkey patching required:
def client
@client ||= Exponent::Push::Client.new(http_client: TyphoeusNoSSLCheck)
end
ah, lovely. Thank you!
@asanger FYI I made a fork that allows to easily add the nossl check without needing to pass in a class:
https://github.com/expo-community/expo-server-sdk-ruby/issues/43
This started happening out of the blue and my notifications stopped working on production (Im using AWS).
Adding
ssl_verifypeer: false
fixed the issue (or '-k' option in curl).Not sure if you guys experienced this too, but here is my solution.