Hello,
I need assistance troubleshooting why OAuth token refresh requests have been regularly failing via:
POST https://api.nuki.io/oauth/token
Case 1
From 2025-08-11T18:13:15.339Z UTC to 2025-08-11T18:21:43.965Z UTC, I attempted to refresh an OAuth token 5 times.
All of the requests failed with status code 504:
{
"response": "<html>\r\n<head><title>504 Gateway Time-out</title></head>\r\n<body>\r\n<center><h1>504 Gateway Time-out</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n"
}
Case 2
After re-authenticating the same account as above, I observed new errors between 2025-08-21T04:52:49.020Z UTC and 2025-08-21T04:57:52.142Z UTC across 6 attempts:
- 4 requests failed with 500 Internal Server Error:
{
"code": 500,
"description": "The server encountered an unexpected condition which prevented it from fulfilling the request"
}
- 2 requests failed with 429 Too Many Requests:
{
"error": "refresh_token_rate_exceeded",
"error_description": "The token refresh operation rate exceeded"
}
I have another account that experienced the same issues (500 + 429) around 2025-08-21, and a similar situation occurred about 2–3 months ago.
All requests were made with a delay of about 1–3 minutes between each attempt.
Could you please investigate and advise how I can mitigate these recurring cases?
Thank you,
Andrii