Persistent DNS Lookup Failure (ENOTFOUND) for Auth Token Refresh
I am experiencing an getaddrinfo ENOTFOUND error when attempting to refresh a user token using the refresh_token grant type. This issue is preventing users from maintaining an authenticated session within my application.
I have already double-checked my implementation and confirmed the following:
The request URL is correct and does not contain any typos. The domain name, <MY_PROJECT_ID>.supabase.co, is correctly taken from my Supabase dashboard.
The project ID is accurate.
The Content-Type header is set to application/json.
The request body correctly includes the refresh_token field.
Despite these checks, the DNS lookup fails consistently, suggesting a potential issue with the domain's resolution on the server side.
Request Details
HTTP Method: POST
Endpoint: https://<MY_PROJECT_ID>.supabase.co/auth/v1/token?grant_type=refresh_token
Request Body (JSON):
{
"refresh_token": "a_valid_refresh_token"
}
Full Error Message:
POST https://<MY_PROJECT_ID>.supabase.co/auth/v1/token?grant_type=refresh_token
Error: getaddrinfo ENOTFOUND <MY_PROJECT_ID>.supabase.co
Could you please investigate this DNS lookup failure on your end? Any assistance in diagnosing this issue would be greatly appreciated.
Thank you
2 Replies
I think you would have to reach out to supabase support for this and file a ticket
Also check the status of your project on the main page and check the auth logs (but the error likely means it is not gettng there).