googlemaps / googlemaps/google-maps-services-java
PlacesApi.placeDetails(context, placeId).await() interface error
- Lenguaje dominante
- Java
- Estrellas
- 1.8k
- Forks
- 973
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
#### 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)
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- api
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100