user1611780
user1611780

Reputation: 11

Places Library returns Unable to authenticate the supplied URL. Please check your client and signature parameters

I have a simple google places library implementation.

var place_service = new google.maps.places.PlacesService(map);
place_service.search(request, place_callback);

It stops working if the browser (Chrome) is left open for several days, untouched. Upon trying the next search, I get 403 error from the library search call.

Unable to authenticate the supplied URL. Please check your client and signature parameters.

Here is the captured request URL:

Closing browser and restarting fixes.

Also have a mobile HTML mobile app (iOS, Android) with same implementation. The apps places functionality also stops working after several days. App must be killed and restarted to fix.

Something seems to be expiring?

Upvotes: 1

Views: 441

Answers (1)

Chris Green
Chris Green

Reputation: 4427

This is normal behaviour, the token parameter in the request can expire after as little as a few hours. I would recommend issuing a page refresh when the user returns if the page or app has been dormant for more than a few hours.

Upvotes: 1

Related Questions