zaront / vector

C# API for the Anki Vector robot.
MIT License
13 stars 8 forks source link

Grpc.Core.RpcException #3

Closed J-Holloway closed 5 years ago

J-Holloway commented 5 years ago

Hello, Great work it's amazing how ever after a while of playing about with some concepts I started getting the following error and could not find anything on google.

'Status(StatusCode=ResourceExhausted, Detail="Maximum auth rate exceeded. Please wait and try again later.")'

Is there somewhere I can read up about this? and how did I likely cause the issue?

Thanks

zaront commented 5 years ago

You aren't, by chance, calling GrantApiAccessAsync in your code are you? I have seen "ResourceExhausted" if you have called that method a bunch of times. If you are, its because that method should only be called one time and then your good for a year. After that you never need to call it again in your code, instead you just call the ConnectAsync to connect, forever in the future. If that was your case, the reason for ResourceExhausted exception its that it is sent from Anki's cloud authorization service to throttle unnecessary and excessive calls to their service.

If this wasn't the case for you, send me your code causing the issue and I'll take a look.

On Wed, May 1, 2019 at 3:35 PM Jonathan Holloway notifications@github.com wrote:

Hello, Great work it's amazing how ever after a while of playing about with some concepts I started getting the following error and could not find anything on google.

'Status(StatusCode=ResourceExhausted, Detail="Maximum auth rate exceeded. Please wait and try again later.")'

Is there somewhere I can read up about this? and how did I likely cause the issue?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zaront/vector/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AEMY7RYG46CYHWLEZX7D3HTPTILKHANCNFSM4HJZWATA .

J-Holloway commented 5 years ago

Hi, Sorry I am not with the code at the moment but I am pretty sure that I am calling GrantApiAccessAsync every time i was running the code, i will amend this and retest as soon as possible

Thank you :)

J-Holloway commented 5 years ago

Yes that was the issue thank you,

zaront commented 5 years ago

Awesome. Glad it's working for you now

On Thu, May 23, 2019, 11:52 AM Jonathan Holloway notifications@github.com wrote:

Yes that was the issue thank you,

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zaront/vector/issues/3?email_source=notifications&email_token=AEMY7R7BKYAU7ZGRQBNTBSTPW3RWBA5CNFSM4HJZWATKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWDE3PQ#issuecomment-495340990, or mute the thread https://github.com/notifications/unsubscribe-auth/AEMY7R6V7HPCEC2VIBHB7X3PW3RWBANCNFSM4HJZWATA .