# Proxy: Serve error auth: Failed to find auth0 user

**URL:** <https://forum.pritunl.com/t/proxy-serve-error-auth-failed-to-find-auth0-user/1923>\
**Category:** Pritunl Zero\
**Tags:** pritunl-zero\
**Created:** [March 20, 2024, 4:07pm UTC](https://forum.pritunl.com/t/proxy-serve-error-auth-failed-to-find-auth0-user/1923 "2024-03-20T16:07:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FerSaaS](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/f/ba9def/32.png) [@FerSaaS](https://forum.pritunl.com/u/FerSaaS)\
**Post date:** [March 20, 2024, 4:07pm UTC](https://forum.pritunl.com/t/proxy-serve-error-auth-failed-to-find-auth0-user/1923/1 "2024-03-20T16:07:58Z")

</div>

Hi Team,

We are having an issue with the integration with Auth0, randomly I have this error in the logs and users are receiving an Internal Server Error 500. It seems that it does not find the user in Auth0, but in reality, the users do exist and are active. There are no error logs in Auth0. Any help?

 ![pritul_error](https://forum-static.pritunl.com/original/1X/f70665396e8f763cb6dba7e50df3eb40c105758d.png)

Thanks

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [March 22, 2024, 3:22pm UTC](https://forum.pritunl.com/t/proxy-serve-error-auth-failed-to-find-auth0-user/1923/2 "2024-03-22T15:22:00Z")

</div>

This is from an API request to the Auth0 `/api/v2/users` handler done in [**pritunl/pritunl-zero/auth/authzero.go**](https://github.com/pritunl/pritunl-zero/blob/master/auth/authzero.go#L377). The error will occur if the request does not return a user with a matching email. Check that the email on both Auth0 and Pritunl Zero does not have any capital letters. If there are non-alphanumeric characters in the email list them.

---

<div class="post-metadata">

**Author:** ![FerSaaS](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/f/ba9def/32.png) [@FerSaaS](https://forum.pritunl.com/u/FerSaaS)\
**Post date:** [March 22, 2024, 5:10pm UTC](https://forum.pritunl.com/t/proxy-serve-error-auth-failed-to-find-auth0-user/1923/3 "2024-03-22T17:10:45Z")

</div>

I don´t think that is that the email not match becuase the users are automatically created on first login. Also is ramdomly so sometimes appear the error (user see Server Error 500) and after clear the cache or open incognito mode, works again with the same user.

 ![image](https://forum-static.pritunl.com/original/1X/141faba6623d2ecbaba74c8f6e93b087780db869.png)

thanks
