shivasiddharth / GassistPi

Google Assistant for Single Board Computers
Other
1.02k stars 304 forks source link

Permission denied error, when trying to register #100

Closed lidense closed 6 years ago

lidense commented 6 years ago

Hi Shivasiddharth, I cannot install gassistpi with the new procedure, when I enter the authorization code I get this error message, I tried to register the device manually but it doesn't help, although I have registered the device model, i cannot create an instance (no permission??) Thanks (I have put xxx to cover the project number)

File "/home/pi/env/lib/python3.5/site-packages/googlesamples/assistant/library/hotword.py", line 84, in register_device raise Exception('failed to register device: ' + r.text) Exception: failed to register device: { "error": { "code": 403, "message": "Could not create the device instance. You don't have permission to get device model 8054xxxx-20171223xxxx. Make sure you registered this device model under your project 8054xxxx.", "status": "PERMISSION_DENIED"

shivasiddharth commented 6 years ago

I guess your project-id is wrong. The project id will have a name and number. I have shown here as to how you need to copy your project-id. https://youtu.be/vprJBDDYE8Q?t=380

shivasiddharth commented 6 years ago

Since, i have not heard back, i am assuming that the issue has been resolved. I am closing this issue for now.

lidense commented 6 years ago

I actually succeeded in having it work. But I tested it so much during the day that at the end I was receiving an error message for 24 hours... Does that mean that google can limit access to their APIs as they like when one uses it too much?? That's a pain isn't it? Thanks and regards David

----- Mail d'origine ----- De: shivasiddharth notifications@github.com À: shivasiddharth/GassistPi GassistPi@noreply.github.com Cc: lidense d.radzik@free.fr, Author author@noreply.github.com Envoyé: Wed, 03 Jan 2018 17:04:44 +0100 (CET) Objet: Re: [shivasiddharth/GassistPi] Permission denied error, when trying to register (#100)

Since, i have not heard back, i am assuming that the issue has been resolved. I am closing this issue for now.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/shivasiddharth/GassistPi/issues/100#issuecomment-355049963

shivasiddharth commented 6 years ago

You are allowed 500 free requests per day. In all these months of development, I have hit that mark only once. Thats infact sufficient. People in the enthusiasm of testing may hit the quota initially, but once that enthusiasm wears out, 500 is plenty. Assuming that a person sleeps for 4 hrs and does not mumble wakewords in sleep, the quota translates to about 25/hr i.e 1 request every 2.5 mins (approx). I guess that is sufficient.

lidense commented 6 years ago

OK thanks and this is free of charge correct? Is it possible that google might reduce this significantly or that one might have to pay for this in the future? Thanks and regards David

Le 4 janv. 2018 à 18:29, shivasiddharth notifications@github.com a écrit :

You are allowed 500 free requests per day. In all these months of development, I have hit that mark only once. Thats infact sufficient. People in the enthusiasm of testing may hit the quota initially, but once that enthusiasm wears out, 500 is plenty. Assuming that a person sleeps for 4 hrs and does not mumble wakewords in sleep, the quota translates to about 25/hr i.e 1 request every 2.5 mins (approx). I guess that is sufficient.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.