Mapillary_tools: session invalidated / bad request

Attempted to upload images with mapillary_tools, got error:
“Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons.”

Wasn’t running the latest version, so upgraded from 0.9.0 to 0.9.5 (latest).
Now getting:

“requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://rupload.facebook.com/mapillary_public_uploads/mly_tools_ce6b4f7aafb56243e586ab0d7579ec95.zip

How to fix this?

could you authenticate and try again?

mapillary_tools authenticate
1 Like

Thank you so much, that did help.
Would it be possible for mapillary_tools to detect specific conditions and offer to re-auth?

That’s a good point. Will add a meaningful message and exit code for this case. Thanks!

2 Likes