Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getaddrinfo: nodename nor servname provided, or not known (SocketError) #27

Open
RajOfficeTroops opened this issue May 12, 2020 · 0 comments

Comments

@RajOfficeTroops
Copy link

RajOfficeTroops commented May 12, 2020

The host url that I'm requesting is https://api.push.apple.com/....
The actual url is the push token appended to the above url:

Therefore the actual url becomes https://api.push.apple.com/..../<push_token> which is uri

notification = RubyPushNotifications::APNS::APNSNotification.new tokens, { aps: { alert: 'Hello APNS World!', sound: 'true', badge: 1 } }

pusher = RubyPushNotifications::APNS::APNSPusher.new(File.read('Certificates.pem'), true, password, { host: uri })

On pusher.push [notification] I get getaddrinfo: nodename nor servname provided, or not known (SocketError).

The uri works perfectly via curl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant