googlemaps / googlemaps/google-maps-services-java

PlacesApi.placeDetails(context, placeId).await() interface error

Ouverte
#1,065 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
triage me type: bug
Langage dominant
Java
Étoiles
1.8k
Forks
973
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

#### Code example
implementation("com.google.maps:google-maps-services:2.2.0")
PlacesApi.placeDetails(context, request.placeId).await();

#### Stack trace
Caused by: com.google.maps.errors.InvalidRequestException: Error while parsing 'fields' parameter: Unsupported field name 'scope'.
at com.google.maps.errors.ApiException.from(ApiException.java:42)
at com.google.maps.PlaceDetailsRequest$Response.getError(PlaceDetailsRequest.java:138)
at com.google.maps.internal.OkHttpPendingResult.parseResponseInternal(OkHttpPendingResult.java:316)
at com.google.maps.internal.OkHttpPendingResult.parseResponse(OkHttpPendingResult.java:230)
at com.google.maps.internal.OkHttpPendingResult.await(OkHttpPendingResult.java:184)
at com.google.maps.PendingResultBase.await(PendingResultBase.java:61)
at app.map.gmap.GMapPlaceService.detail(GMapPlaceService.java:155)

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduce the request from the example using PlacesApi.placeDetails(context, request.placeId).await(), then inspect PlaceDetailsRequest.java and the response parsing shown in the stack trace. Trace where the fields parameter containing scope is produced; done means the reported request no longer fails with the unsupported scope field error.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
api
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
48/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.