Skip to content

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

Open
@MattWilliams89

Description

@MattWilliams89

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

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!

Metadata

Metadata

Assignees

Labels

triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions