googlemaps / googlemaps/google-maps-services-java
PlacesApi.placeDetails(context, placeId).await() interface error
- Lingua principale
- Java
- Stelle
- 1.8k
- Fork
- 973
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
#### 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)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100