Error thrown while calling Notifications.getExpoPushTokenAsync

Please provide the following:

  1. SDK Version: 44.0.5
  2. Platforms(Android/iOS/web/all): Android/iOS
  3. Notifications

Hi,

We have started to receive a very high number of 504 Gateway Time-out errors whilst calling await Notifications.getExpoPushTokenAsync. I raised this in a previous call (61323) in January, and although no solution was provided the error did seem to disappear. Over the weekend it has return in increasing volumes, I have noticed a similar issue has been raised as a bug in gitlab (18650).

If anyone has any ideas what might be causing the issue it would be great help.

Token Request:

/**
* Get EXPO notification token
*
* @returns {Object}    A JSON object of expo token
*/
export async function getTokenAsync () {
  // Request token
  let experienceId
  if (!Constants.manifest) {
    // Absence of the manifest means we're in bare workflow
    experienceId = '@username/example'
  }
  const expoPushToken = await Notifications.getExpoPushTokenAsync({
    experienceId
  })

  return expoPushToken
}

Reponse:

<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>

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