python-google-places
python-google-places copied to clipboard
Invalid Request when using next page token
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.
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"
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.