You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the sample code for the Routes API, I received the following error message:
Error: 3 INVALID_ARGUMENT: FieldMask is a required parameter. See https://cloud.google.com/apis/docs/system-parameters on how to provide it. As an example, you can set the header 'X-Goog-FieldMask' to value 'routes.distanceMeters,routes.duration,routes.polyline.encodedPolyline' to ask for the route distance, duration, and polyline in the response. You can also set the value to '*' in manual testing to get all the available response fields. However, using the '*' wildcard is discouraged in production.
Please make sure you have searched for information in the following guides.
Documentation Request
When using the sample code for the Routes API, I received the following error message:
To fix this, I had to change the following line:
I had to pass a
X-Goog-Fieldmask
header:Should the documentation be updated to include the field mask? Or did I encounter an unusual edge case of some kind?
The text was updated successfully, but these errors were encountered: