Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to " Error from the server. The error's 'origin' property contains the response's body." #23

Open
kommnat opened this issue Sep 28, 2019 · 4 comments

Comments

@kommnat
Copy link

kommnat commented Sep 28, 2019

Pls Help.

@xiiruru
Copy link

xiiruru commented Sep 28, 2019

^ having the same issue

@Yasser-G
Copy link
Contributor

Hello, Thanks for reporting this issue, in order to resolve it Please provide us with steps to reproduce it.

Thanks.

@ppv94
Copy link

ppv94 commented Oct 17, 2019

if we send address in

Geocoder.from("visakhapatnam,andhra pradesh,india")
.then(json => {
var location = json.results[0].geometry.location;
console.log("location",location)
})
.catch(error => console.warn("routeMap Err",error));

i am getting error
{"code": 4, "message": "Error from the server while geocoding. The received datas are in the error's 'origin' field. Check it for more informations.", "origin": {"error_message": "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started", "results": [], "status": "REQUEST_DENIED"}}

@Yasser-G
Copy link
Contributor

if we send address in

Geocoder.from("visakhapatnam,andhra pradesh,india")
.then(json => {
var location = json.results[0].geometry.location;
console.log("location",location)
})
.catch(error => console.warn("routeMap Err",error));

i am getting error
{"code": 4, "message": "Error from the server while geocoding. The received datas are in the error's 'origin' field. Check it for more informations.", "origin": {"error_message": "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started", "results": [], "status": "REQUEST_DENIED"}}

@ppv94 This Error response is just forwarding server response which in your case is
"You must enable Billing on the Google Cloud Project"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants