ERR_NAME_NOT_RESOLVED

I am running an app in a docker container with a backend in express and frontend in next. I am getting the following error when trying to sign in:
POST http://admin-portal-backend:3001/api/auth/sign-in/email net::ERR_NAME_NOT_RESOLVED
POST http://admin-portal-backend:3001/api/auth/sign-in/email net::ERR_NAME_NOT_RESOLVED
My auth config seems to be correct, with the trusted origins on both the client and backend auth setup pointing to eachothers container respectively, and when my user session was kept from a previous sign in i was pushed to the correct page but trying to sign out i got the following error:
http://admin-portal-backend:3001/api/auth/sign-out net::ERR_NAME_NOT_RESOLVED
http://admin-portal-backend:3001/api/auth/sign-out net::ERR_NAME_NOT_RESOLVED
What can cause this issue? Some server logs i see are:
admin-portal-backend | GET /api/auth/get-session 200 9.419 ms - -

admin-portal-backend | OPTIONS /api/auth/sign-in/email 204 0.314 ms - 0

admin-portal-backend | POST /api/auth/sign-in/email 200 156.627 ms - -
admin-portal-backend | GET /api/auth/get-session 200 9.419 ms - -

admin-portal-backend | OPTIONS /api/auth/sign-in/email 204 0.314 ms - 0

admin-portal-backend | POST /api/auth/sign-in/email 200 156.627 ms - -
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?