Melvin-Abraham / Google-Assistant-Unofficial-Desktop-Client

A cross-platform unofficial Google Assistant Client for Desktop (powered by Google Assistant SDK)
Apache License 2.0
3.6k stars 409 forks source link

Error:Failed to get tokens. #343

Open liukenny961 opened 3 years ago

liukenny961 commented 3 years ago

Error:Failed to get tokens. When I follow the steps to get the token, I paste the code into the client and after 10 seconds "Failed to get tokens" appears. I tried another account and it didn't work. Snipaste_2021-04-26_17-06-17 Snipaste_2021-04-26_17-09-13 how can l solve it?

liukenny961 commented 3 years ago

And I tried saving the Json file to disk E and trying again, but it didn't work.😢

pchiddy commented 3 years ago

In case it helps, I had the same issue when the OAuth json file was saved in my Program Files directory. Moved it to a sub-folder in My Documents and it works fine. Guessing it was related to permissions.

liukenny961 commented 3 years ago

But I think the E drive can also meet the permissions required by the file, and in the author's configuration document, this problem is also pointed out, and said, "You can save the OAuth json file on the E drive and other disks to solve the permission problem. "But I have tried to do this and still have this problem. So I think it may not be a question of permissions.

KALAAKAAR1 commented 3 years ago

hey did you find the solution to this problem I am facing the same problem. help

liukenny961 commented 3 years ago

No…

KALAAKAAR1 commented 3 years ago

Do you know who to reach for help?

Melvin-Abraham commented 3 years ago

And I tried saving the Json file to disk E and trying again, but it didn't work.😢

What error did you get in the DevTools after changing the location?

hrishikesh-deshpande commented 3 years ago

I was having this problem as I was setting the path same as installation path which was in C:/ and required write access. I launched the assistant with administrative privileges and that solved my problem. It has to be in admin mode only once (while you are fetching the token).

Draznus commented 3 years ago

Quitting the assistant and then running it as administrator solved the problem for me.