Skip to content
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

fixes pagination INVALID_REQUEST handling #230

Merged
merged 2 commits into from
Apr 10, 2019

Conversation

amuramoto
Copy link
Member

@amuramoto amuramoto commented Apr 6, 2019

When a next_page_token is returned for nearby places searches, an INVALID_REQUEST status is returned if the token is sent too quickly. This fixes retry logic for this case, and reenables a pagination test that was previously failing because of this.

@amuramoto
Copy link
Member Author

@domesticmouse @stephenmcd if either of you is familiar with this codebase, can you sanity check this? Basically, if pagetoken is sent too soon the API returns INVALID_REQUEST status, and the util was not properly handling this in the retry logic.

@domesticmouse
Copy link

The failing Travis tests looks like it needs some maintenance. I'm guessing the API keys were once used securely by the testing infrastructure, but it no longer works?

But, I really don't know anything about this codebase. It's really @stephenfarrar and @stephenmcd who know the most about it. Sorry!

@amuramoto
Copy link
Member Author

Thanks @domesticmouse! Yeah Travis is failing because the secure env vars are not available to PRs. Everything is passing locally for me.

@stephenmcd
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants