-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token generation with "Invalid client credentials." #37
Comments
Hi,
sorry for read that.
could you please check into the console (
https://developer.mercedes-benz.com/console) if you can see your project
with the right permissions?
you should see something like this
![image](https://user-images.githubusercontent.com/47370115/211917787-1b8ac031-c8b4-4a37-8bfb-7b7c1a4892c5.png)
then above you should see something like this:
![image](https://user-images.githubusercontent.com/47370115/211917585-376d3068-cc80-42d9-83b4-5a95a4f79bc5.png)
be sure that you have localhos as redirect url.
then use that cliend id and client secret in the configuration file.
let me know please.
i've just tried now with my configuration and it worked for me.
thanks
|
$ cat .mercedesme_config if you have issue generate another one |
Thank you @xraver, I have confirmed again and all is exactly the same. I did create a new secret which unfortunately didn't change the result. I tried to rename the .mercedes_config file or leave the values empty, and it complained that it was missing the file or properties. So that part looks correct. |
could you try with the pyton script?
|
I did some test: {"error":"invalid_request","error_description":"Invalid client or client credentials."} the error that you have is something different... |
My apologies, I tried to run the python script, however it runs into an error:
Hence I used the shell script which does generate the (invalid) token file. Here's an overview of the folder:
|
I've got the same issue. |
If you will have issue that this module still can't be found, then try to use virtual env: |
Thank you very much! That was it. It actually worked with the python script! However the shell script still failed. It produced an |
Thanks ! (had to do 1 more - pip3 install request for some reason) |
Had the exact same issue also and solved it using the python script. Something's definitely wrong with the bash one. |
Probably I found the bug in the bash script: Before I did this change I was not forwarded to the Mercedes me site, where I could accept the access to my cars data. |
Situation:
Steps:
.mercedeme_token content:
{"error":"invalid_client","error_description":"Invalid client credentials."}
It seems to be an obvious description in the file, however I'm not able to solve it.
The text was updated successfully, but these errors were encountered: