Skip to content

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

@RajOfficeTroops

Description

@RajOfficeTroops

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions