# Long emails return 200 OK with empty response body

**URL:** <https://community.auth0.com/t/long-emails-return-200-ok-with-empty-response-body/111592>\
**Category:** Get Help\
**Tags:** users-by-email, management-api\
**Created:** [July 19, 2023, 12:48pm UTC](https://community.auth0.com/t/long-emails-return-200-ok-with-empty-response-body/111592 "2023-07-19T12:48:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kthomas182](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kthomas182/32/49042_2.png) [@kthomas182](https://community.auth0.com/u/kthomas182)\
**Post date:** [July 19, 2023, 12:48pm UTC](https://community.auth0.com/t/long-emails-return-200-ok-with-empty-response-body/111592/1 "2023-07-19T12:48:25Z")

</div>

I created a user with an extremely long email address and it returns a 200 response code, but an empty body.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/9/c/9c4794738921038058bb2a7ca5416d532307d9dd.png)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 25, 2023, 3:45pm UTC](https://community.auth0.com/t/long-emails-return-200-ok-with-empty-response-body/111592/3 "2023-07-25T15:45:28Z")

</div>

Hi @kthomas182,

Welcome to the Auth0 Community!

Could you please provide an example email (this can be a similar, fake email address) so I can recreate the issue? Thank you.

---

<div class="post-metadata">

**Author:** ![kthomas182](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kthomas182/32/49042_2.png) [@kthomas182](https://community.auth0.com/u/kthomas182)\
**Post date:** [July 25, 2023, 3:53pm UTC](https://community.auth0.com/t/long-emails-return-200-ok-with-empty-response-body/111592/4 "2023-07-25T15:53:04Z")

</div>

[devmywebsite+483510003954user1234@gmail.com](mailto:devmywebsite+483510003954user1234@gmail.com)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 26, 2023, 12:53pm UTC](https://community.auth0.com/t/long-emails-return-200-ok-with-empty-response-body/111592/5 "2023-07-26T12:53:22Z")

</div>

Hi @kthomas182,

That seemed to work okay for me.

Is it possible there is an issue with case-sensitivity? For reference, Auth0 database users are automatically converted to lower-case, and the search-by-email endpoint is case sensitive.

---

<div class="post-metadata">

**Author:** ![kthomas182](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kthomas182/32/49042_2.png) [@kthomas182](https://community.auth0.com/u/kthomas182)\
**Post date:** [July 26, 2023, 1:11pm UTC](https://community.auth0.com/t/long-emails-return-200-ok-with-empty-response-body/111592/6 "2023-07-26T13:11:14Z")

</div>

> [@kthomas182](#):
>
> [devmywebsite+483510003954user1234@gmail.com](mailto:devmywebsite+483510003954user1234@gmail.com)

Ok, so i think the issue is actually my + in the email address when searching. It needs to be encoded

[devmywebsite+483510003954user1234567890@gmail.com](mailto:devmywebsite+483510003954user1234567890@gmail.com)

converts to this:

devmywebsite%2B483510003954user1234567890%[40gmail.com](http://40gmail.com)

Passing in the encoded email address was successful. Thanks for your help

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 26, 2023, 1:14pm UTC](https://community.auth0.com/t/long-emails-return-200-ok-with-empty-response-body/111592/7 "2023-07-26T13:14:15Z")

</div>

Awesome! Glad you got it figured out.

---

<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:** [August 23, 2023, 2:39pm UTC](https://community.auth0.com/t/long-emails-return-200-ok-with-empty-response-body/111592/8 "2023-08-23T14:39:48Z")

</div>

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