xraver / mercedes_me_api

Script to use Mercedes Me APIs.
MIT License
57 stars 14 forks source link

Error retrieving available resources - Invalid or missing authorization in header (401) #39

Closed kenzot11 closed 1 year ago

kenzot11 commented 1 year ago

Hi

Since October the integration stopped working. Had this happen before and just started over with al the config and project on Mercedes API. But now it doesn't seem to be working.

Created a new token via the script with the -t flag => OK Can execute the -r flag but nothing seems to happen. when executing the -s flag i get following error: Error retrieving available resources - Invalid or missing authorization in header (401) Error retrieving available resources Error retrieving resource list. Error initializing resources

So i can refresh the token but it doesn't seem to be valid when doing requests.

kenzot11 commented 1 year ago

My bad, was creating the token with the old scripts. Make sure you use the new scripts when creating the first token. for some reason mercedes still let's you use the old way to create and refresh but not to use the token for requests.