-
Notifications
You must be signed in to change notification settings - Fork 694
HTTPError: 403 Client Error: Forbidden for url #321
Comments
Did you use the same Google account to create the cloud project and to log in from the Raspberry Pi? If not, you'll need to use the same account, or to make the account running on the Pi a project editor, so that it can register itself. You can add the editor rights here: https://console.cloud.google.com/iam-admin/iam. |
Yes, I used the same account. I removed .cache directory and tried again. I got same error (as above) after following log line.
|
I am getting the same error. In my case, I already set up voice recognition app in one google account and I want to change the account with another. I guess the problem is the consent step. It thinks it already have consent from previous account and send request but it has never consented. |
@proppy Any idea what could be causing this? |
can you confirm that account used to register the device is a viewer of the project where the device model was created? |
@drigz I would double check in the developer console for project |
Also it seems that the failure is on |
Same issue here. Same account to create & log in. Additionally cleared the cache & re-downloaded the credentials to no avail. |
I've run into the same issue - same symptoms - but the problem was that, somehow the APIs and services got disabled - I'd swear I didn't do it, but with all the going back and forth, who knows? After I went through “Enable APIS and Services” again, it started to work. The only tweak I would do on the client side is to delete the credentials .cache directory. I hope this helps. |
@mihilie thank you for your input - seems I had the exact same issue. I'm not sure when or how the assistant API got disabled after I set it up, but it all works fine for me now. Didn't even need to clear the credentials. Hopefully this is the root of the problem for others in this thread. |
Hi, I'm stuck when trying to run my application from rc.local. Seems as when I try to run it from rootlevel, even when I copied my credentials from userlevel assistant.json I get 403 forbidden error at device model. It runs fine under userlevel. I'm pretty positive I used the one and same account when creating the project and what I used to log in with. Anyone got any ideas? Thanks.
|
Please make sure you can run this command using |
Hi Dmitri. Yes, my current command in rc.local looks like this: What do you mean when you say "all credentials"? I've created a client ID through Google Cloud Platform and placed it in assistant.json at /root, is there another credential-file I'm missing? |
@Nojahhh Did you try to run your application manually on terminal on rootlevel? Did it work ? Can you share what happens when you perform below steps:
I was able to run demo with above steps. Haven't tried it with rc.local yet. UPDATE: I executed assistant_grpc_demo with rootlevel before running any other demo. And assistant_grpc_demo again asked for authentication code for rootlevel. |
@manoj7410 I tried your exact steps above to no avail. Any other suggestions? Thanks. |
I followed steps in guide and when I ran
src/examples/voice/assistant_library_demo.py
it opened up browser for permission, it initialised credentials in cach directory and threw this exception.Workaround: Re-enable the Assistant API in the Cloud Console.
The text was updated successfully, but these errors were encountered: