Please provide the following:
- SDK Version: 44.0.5
- Platforms(Android/iOS/web/all): Android/iOS
- 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>