cedricdelpoux / react-google-places-suggest

React component to select geolocated suggestion from Google Maps Places API
https://cedricdelpoux.github.io/react-google-places-suggest/
MIT License
86 stars 44 forks source link

Invalid sessionToken #86

Closed joostbaptist closed 2 years ago

joostbaptist commented 3 years ago

Hi! First of all thank you for building this great little component.

I've started getting this error recently, using version 3.12.1:

InvalidValueError: not an instance of AutocompleteSessionToken

It happens when you type something, select a place, and then start typing something else (starting a second session). I suspect it has something to do with reusing the session token as implemented in #78. The problem disappears when I downgrade to version 3.11. Could it be that Google does not want us to reuse session tokens? Does anyone have any idea?

cedricdelpoux commented 3 years ago

I have no idea about what is the best way to use Google sessions tokens. Maybe we can add an option withSessionToken=false to disable it.

cedricdelpoux commented 3 years ago

I would be happy if someone could help with a PR about this

ItsBradyDavis commented 2 years ago

Probably related: https://github.com/cedricdelpoux/react-google-places-suggest/pull/97

cedricdelpoux commented 2 years ago

Closing it because it was related to #97.

I just published 3.12.3 version