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

Đang mở
#906 7 bình luận 16 reaction 1 người được giao Được @amuramoto nhận Xem trên GitHub
triage me type: bug
Ngôn ngữ chính
Java
Star
1.8k
Fork
973
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

#### 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!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.