Unable to send Push Notifications (getaddrinfo ENOTFOUND)

Hi

All of a sudden, I am unable to send Push Notifications today. It was working till yesterday. I get the following error

Error: { FetchError: request to https://exp.host/--/api/v2/push/send failed, reason: getaddrinfo ENOTFOUND exp.host exp.host:443
    at ClientRequest.<anonymous> (/Users/gopi/expo/gstproject/judo/node_modules/node-fetch/index.js:133:11)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at TLSSocket.socketErrorListener (_http_client.js:310:9)
    at emitOne (events.js:96:13)
    at TLSSocket.emit (events.js:188:7)
    at connectErrorNT (net.js:1021:8)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)
  name: 'FetchError',
  message: 'request to https://exp.host/--/api/v2/push/send failed, reason: getaddrinfo ENOTFOUND exp.host exp.host:443',
  type: 'system',
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND' }

Any idea what might be going on?

ENOTFOUND usually indicates your server wasn’t able to resolve the address via DNS. We haven’t made DNS changes — could there have been and issue with your server? (BTW this issue arises with the free Firebase plan, which currently does not allow network connections outside of Google’s services, but it sounds like things were working for you previously and this potential cause is unrelated.)

2 Likes

OK… flushed my DNS settings. Looks fine now. Thanks.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.