hibiken / react-places-autocomplete

React component for Google Maps Places Autocomplete
https://hibiken.github.io/react-places-autocomplete/
MIT License
1.38k stars 388 forks source link

Server returned status code ZERO_RESULTS #393

Closed brilianrn closed 1 year ago

brilianrn commented 2 years ago

Do you want to request a feature or report a bug? Bug Issue

What is the current behavior? Currently still in the process of finding a solution to the bug that occurred

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. In a project, I'm working on I installed code from react-places-autocomplete to perform a location search with keywords entered by the user.

Everything works normally, but when I search with the keyword "Arcadia Daanmogot" and choose the first option from the suggestions, I get an error "Server returned status code ZERO_RESULTS".

I got the error in the code line like this: geocodeByAddress(address) .then((results) => { console.log(results, ' ====== RESULT') // getLatLng(results[0]) }) .catch(err => console.log(err, ' ERROR'))

I got the error when I run geocodeByAddress with the keyword "Arcadia Daanmogot" and choose the first option from the suggestions.

What is the expected behavior? Doing a normal search and getting a location that matches what the user wants.

Which versions of ReactPlacesAutocomplete, and which browser / OS are affected by this issue? For react-places-autocomplete, I used version 7.3.0. And for browser/OS are affected by this issue is all of browser/OS.

Please help my issue @hibiken

Paul-Taiwo commented 1 year ago

I tried replicating the bug but it seems to work fine. If the bug still persists please raise another issue.

image image
SyedMuttaqeenRizvi commented 1 year ago

Hi i been using this LIb for 3 years now and now suddenly i started having the same issue when i do a specific search "Paris Charles de Gaulle Airport (CDG), Roissy-en-France, France". This gives me 0 results same as mentioned above and is causing alot to business. If someone can help me on this would be great.