google / aiyprojects-raspbian

API libraries, samples, and system images for AIY Projects (Voice Kit and Vision Kit)
https://aiyprojects.withgoogle.com/
Apache License 2.0
1.61k stars 692 forks source link

Authorization Error #719

Closed CristianEduardMihai closed 3 years ago

CristianEduardMihai commented 3 years ago

Hi ! I was at the cd ~/AIY-projects-python/src/examples/voice ./assistant_library_demo.py

part, after i got the link and pasted it into the browser i got this error:

Error 403: access_denied The developer hasn’t given you access to this app. It’s currently being tested and it hasn’t been verified by Google. If you think you should have access, contact the developer

Keep in mind that i am logged in the account that i just got the api from. Is not like i am on another one...so..what can i do ?

manoj7410 commented 3 years ago

@MihaiCristianAlphaTeam Did you try to run assistant_grpc_demo too ? Which version of voice kit are you working on ? In which country are you running the kit ?

CristianEduardMihai commented 3 years ago

Yes. I ran all of them I am on the first version because I wanted a rpi 3 inside Romania But I think i saw what the problem was. Screenshot_20201207-114709_Discord

manoj7410 commented 3 years ago

@MihaiCristianAlphaTeam I just created new credentials and I am not able to reproduce this issue. Are there any specific steps that you can share?

CristianEduardMihai commented 3 years ago

I fixed it. I needed to publish my app....as not shown in the tutorial

qaz6209031 commented 3 years ago

I am having the exact same issue, how did you publish your app?

qaz6209031 commented 3 years ago

I figureed it out, yeah you have to publish your app, it's weird that they don't put it in the documentation

jayquijano commented 3 years ago

Having the same issue, how does one publish their app

bwbass commented 3 years ago

I am in the same boat... I followed each step in the documentation for the AIY Voice Kit V2.0, but when I try to run assistant_grpc_demo.py and put the specified URL in my browser I get:

Authorization Error Error 403: access_denied The developer hasn’t given you access to this app.

If the answer is publishing the app, how to I do that?

CristianEduardMihai commented 3 years ago

I am in the same boat... I followed each step in the documentation for the AIY Voice Kit V2.0, but when I try to run assistant_grpc_demo.py and put the specified URL in my browser I get:

Authorization Error Error 403: access_denied The developer hasn’t given you access to this app.

If the answer is publishing the app, how to I do that?

I can't remember how i did that...but send me a screenshot of the google cloud project and maybe i will remember. You can add me on discord: AD Mihai#2499

CristianEduardMihai commented 3 years ago

I am in the same boat... I followed each step in the documentation for the AIY Voice Kit V2.0, but when I try to run assistant_grpc_demo.py and put the specified URL in my browser I get:

Authorization Error Error 403: access_denied The developer hasn’t given you access to this app.

If the answer is publishing the app, how to I do that?

I can't remember how i did that...but send me a screenshot of the google cloud project and maybe i will remember. You can add me on discord: AD Mihai#2499

NorkaKnight commented 3 years ago

To publish, go to the OAuth Consent Screen and under Publishing Status you can find the option to publish.

gigamegawatts commented 3 years ago

I just ran into the same problem. If you don't want to use the Publish App approach (is there a downside to doing this?), an alternative is to add your e-mail address as a tester. Click OAuth Consent Screen in the left menu, then click the Add Users button under "Test Users".

I'm pretty sure that Google has changed the Cloud Console's Credentials page, since I didn't have this problem the last time I played with AIY Voice (July last year). OK Google, update the User's Guide!

scottamain commented 2 years ago

The credentials setup instructions are fixed to include adding your account as a test user (among other cloud console UI changes): https://aiyprojects.withgoogle.com/voice#google-assistant--get-credentials