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

Error while parsing 'fields' parameter: Unsupported field name 'id'. #196

Open
cboudreaux opened this issue Aug 9, 2023 · 3 comments
Open

Comments

@cboudreaux
Copy link

cboudreaux commented Aug 9, 2023

Last night we started receiving this error message from Google, then it stopped after a few hours, and then started happening again this evening:

/**/xdc._59ytoe && xdc._59ytoe( {
"error_message" : "Error while parsing 'fields' parameter: Unsupported field name 'id'. ",
"html_attributions" : [],
"status" : "INVALID_REQUEST"
}
)

https://maps.googleapis.com/maps/api/place/js/PlaceService.GetPlaceDetails?2sen-US&10e3&14m1&1sChIJ5RMSqLYwW4YRYfY5q9XXt8U&15sDB6CFA28-6A81-4EA6-BCEB-14A464CEBFDF35e40m4ssbpg&16m1&1saddress_components%2Cadr_address%2Calt_id%2Cformatted_address%2Cgeometry%2Cicon%2Cid%2Cname%2Cbusiness_status%2Cphoto%2Cplace_id%2Cscope%2Ctype%2Curl%2Cutc_offset%2Cvicinity&17m1&2e1&callback=_xdc_._59ytoe&key=<KEY_REDACTED>&token=35321

Is anyone else experiencing this? Is there something we need to change?

@AsuraKev
Copy link

AsuraKev commented Aug 9, 2023

same i got it as well

@AsuraKev
Copy link

AsuraKev commented Aug 9, 2023

it turns oout google dont support id in the fields which is included by the library by default. Current workaround is to copy the component from node module and remove the id from this line

const BASIC_DATA_FIELDS = ["address_components", "adr_address", "alt_id", "formatted_address", "geometry", "icon", "name", "business_status", "photo", "place_id", "scope", "type", "url", "utc_offset_minutes", "vicinity"];

@cboudreaux
Copy link
Author

@AsuraKev Thank you!

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

2 participants