Push Notifications (were) Not Working #2125
Unanswered
pavelklymenko
asked this question in
Ideas and Issue Triage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to make push notifications work (I saw a pop-up at the bottom right of the screen, but it wasn't delivered as a push notification). Jobs completed "successfully," but no notifications arrived.
What I changed?
Code
config/initializers/web_push.rbline 23.Before:
After:
Why?
Net::HTTP.newsignature is:The third argument is for a proxy address, not
ipaddr. Passing{ipaddr: endpoint_ip}as a Hash causedTCPSocket#initializeto fail with:The way to pin a connection to a specific IP (for SSRF protection) is to set
http.ipaddr = endpoint_ipafter creating the HTTP object.After this the notifications started to arrive. Am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions