-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination in Places Produces ApiError: INVALID_REQUEST (Rate-limit Problem?) #366
Comments
I haven't had a chance to look into this. Did you find anything else on this? |
Having the same issue, and can confirm that If I call the API twice with no page_token the request works correctly. The problem is there even if you don't use a radius. |
Had the same problem, fixed it using
|
@skumarlabs could you point me to where you found that? I just can't seem to find that in the docs now. |
Any updates on this? |
This should either be closed as working as designed (as it is according to the docs) or add in an automatic sleep timer with override option when using a next_page_token. Or better yet update the library to use the Nearby Search (New) api endpoint which only returns 20 results. |
Environment Details
API Used: Places
OS: Mac OS 10.15.4 (Catalina)
Python Version: 3.8
Library Version: 4.4.1
Other Info: Executed in PyCharm
Steps to Reproduce
Code that Produces Exception
Stack Trace
Extra
Adding time.sleep(2) resolves this error and the code executes
Working Code
The text was updated successfully, but these errors were encountered: