Site can't be reached after login

I’m using the sample code from next.js, everything works well but after loggin in I’m redirected to http://localhost:3000/api/auth/callback witch throws an error of site can’t be reached. If I change the url and go to http://localhost:3000 I’m sucessfully logged in.

This is the example that I’m using: Auth0 Next.js SDK Quickstarts: Login
I only changed the AUTH0_SECRET, the project settings are set like this:

Please give me some help, thanks