[bugreport] 500 Server Error with invalid email

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).

$ ./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!

cc: @tao , @abalys

1 Like

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