python-google-places icon indicating copy to clipboard operation
python-google-places copied to clipboard

Invalid Request when using next page token

Open swaterfall opened this issue 7 years ago • 2 comments

Requesting the next page returns an invalid request, it looks like the param sensor=false is causing it as removing this from the url fixes the issue. Putting the param first also seems to fix the issue. Replacing & with & will also fix it.

swaterfall avatar Feb 07 '18 10:02 swaterfall

This doesn't seem right at all... How quickly are you requesting the next page after the first page has been returned?

"There is a short delay between when a next_page_token is issued, and when it will become valid. Requesting the next page before it is available will return an INVALID_REQUEST response"

slimkrazy avatar Apr 10 '18 14:04 slimkrazy

I had the same problem and tried around to find the time between requests. It didn't work for with a waiting time <= 100ms. 150ms works for me most of the time.

hendrikschneider avatar Apr 28 '18 23:04 hendrikschneider