# Nextjs 4.1.0 auth0 error generic localhost

**URL:** <https://community.auth0.com/t/nextjs-4-1-0-auth0-error-generic-localhost/184103>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [March 19, 2025, 3:32am UTC](https://community.auth0.com/t/nextjs-4-1-0-auth0-error-generic-localhost/184103 "2025-03-19T03:32:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thiago.mouro](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thiago.mouro/32/72792_2.png) [@thiago.mouro](https://community.auth0.com/u/thiago.mouro)\
**Post date:** [March 19, 2025, 3:32am UTC](https://community.auth0.com/t/nextjs-4-1-0-auth0-error-generic-localhost/184103/1 "2025-03-19T03:32:35Z")

</div>

I tried to up this example in my demo tenant:

Ocorreu um erro ao executar a solicitação de descoberta. Certifique-se de que a variável de ambiente AUTHO\_DOMAIN esteja configurada

My region is US, Do I need to input “us” in the middle? I tried to input and received the same error.

In forun, I saw about a problem with localhost url and cache…

What’s the correctly resolution for this?

Error in browser when I input: “localhost:3000/auth/login”

An error occured while trying to initiate the login request.

---

<div class="post-metadata">

**Author:** ![thiago.mouro](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thiago.mouro/32/72792_2.png) [@thiago.mouro](https://community.auth0.com/u/thiago.mouro)\
**Post date:** [March 19, 2025, 3:33am UTC](https://community.auth0.com/t/nextjs-4-1-0-auth0-error-generic-localhost/184103/2 "2025-03-19T03:33:17Z")

</div>

I look for:

#[https://github.com/auth0/nextjs-auth0/issues/1832#issuecomment-2515680592#](https://github.com/auth0/nextjs-auth0/issues/1832#issuecomment-2515680592#)

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [March 19, 2025, 5:27pm UTC](https://community.auth0.com/t/nextjs-4-1-0-auth0-error-generic-localhost/184103/4 "2025-03-19T17:27:31Z")

</div>

Hi @thiago.mouro,

The error is saying that the AUTH0\_DOMAIN has not been provided. Did you provide the Auth0 domain to the environment variables?

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 2, 2025, 5:28pm UTC](https://community.auth0.com/t/nextjs-4-1-0-auth0-error-generic-localhost/184103/5 "2025-04-02T17:28:28Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
