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