googlemaps / googlemaps/google-maps-services-java
PlacesApi.placeDetails(context, placeId).await() interface error
- 主要语言
- Java
- 星标
- 1.8k
- 派生
- 973
- PR 合并指标
- 30 天内没有已合并 PR
描述
#### 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)
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100