# \[bugreport\] 500 Server Error with invalid email

**URL:** https://forum.mapillary.com/t/bugreport-500-server-error-with-invalid-email/8458
**Category:** Web and notifications
**Created:** [October 22, 2024, 3:35pm UTC](https://forum.mapillary.com/t/bugreport-500-server-error-with-invalid-email/8458 "2024-10-22T15:35:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Richlv](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/richlv/32/68232_2.png) [@Richlv](https://forum.mapillary.com/u/Richlv)
#### Post date: [October 22, 2024, 3:35pm UTC](https://forum.mapillary.com/t/bugreport-500-server-error-with-invalid-email/8458/1 "2024-10-22T15:35:47Z")

</div>

Using mapillary\_tools, attempt to authenticate. Enter an invalid email - for example, `12345`.  
This results in HTTP error 500 (a problem on the server side).

```auto
$ ./mapillary_tools authenticate --user_name richlv
Sign in for user richlv
Enter your Mapillary user email: 12345
Enter Mapillary user password: 
Traceback (most recent call last):
  File "main.py", line 8, in <module>
  File "mapillary_tools/commands/ __main__.py", line 168, in main
  File "mapillary_tools/commands/authenticate.py", line 32, in run
  File "mapillary_tools/authenticate.py", line 41, in authenticate
  File "mapillary_tools/authenticate.py", line 69, in prompt_user_for_user_items
  File "mapillary_tools/authenticate.py", line 52, in prompt_user_for_user_items
  File "mapillary_tools/api_v4.py", line 27, in get_upload_token
  File "requests/models.py", line 1024, in raise_for_status
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://graph.mapillary.com/login?access_token=MLY%7C5675152195860640%7C6b02c72e6e3c801e5603ab0495623282
[3395] Failed to execute script 'main' due to unhandled exception!

```

---

<div class="post-metadata">

### Author: ![boris](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/boris/32/71767_2.png) [@boris](https://forum.mapillary.com/u/boris)
#### Post date: [October 23, 2024, 8:19am UTC](https://forum.mapillary.com/t/bugreport-500-server-error-with-invalid-email/8458/2 "2024-10-23T08:19:34Z")

</div>

cc: @tao , @balys

---

<div class="post-metadata">

### Author: ![balys](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/balys/32/72313_2.png) [@balys](https://forum.mapillary.com/u/balys)
#### Post date: [October 23, 2024, 11:19am UTC](https://forum.mapillary.com/t/bugreport-500-server-error-with-invalid-email/8458/3 "2024-10-23T11:19:43Z")

</div>

Thanks for reporting this!

Improved feedback on an invalid email would indeed be an improvement, although unlikely to be looked into anytime soon.

cc: @tao

Kind regards,  
Balys
