googlemaps / googlemaps/google-maps-services-java

Places: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 408 column 36 path $.result.secondary_opening_hours

未关闭
#906 7 条评论 16 个 reaction 已指派 1 人 已被 @amuramoto 认领 在 GitHub 查看
triage me type: bug
主要语言
Java
星标
1.8k
派生
973
PR 合并指标
30 天内没有已合并 PR

描述

#### Environment details

OS type and version:
Gradle JDK: jbr-17, 17.0.6
Kotlin JVM: 1.8.0

Library version and other environment information:
com.google.maps:google-maps-services:2.2.0

Running on Ktor server v 2.2.3

#### Steps to reproduce

1. Make a call to PlacesApi.placeDetails with placeId ChIJTSQM7Smze0gR627zU4Cvkn4

#### Code example

```java
return try {
val response = PlacesApi.placeDetails(GoogleApiClient.context, id).await()
} catch (e: Throwable) {
PlacesDetailClientResponse.Error
}
```

#### Stack trace
```
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 408 column 36 path $.result.secondary_opening_hours
```

Following these steps will guarantee the quickest resolution possible.

Thanks!

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。