Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Places API : (bg thread: 82): Unknown type for enum com.google.maps.model.AddressComponentType: 'landmark' com.google.maps.internal.SafeEnumAdapter.read:64 #868

Open
anprav opened this issue Oct 27, 2022 · 3 comments · May be fixed by #869
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@anprav
Copy link

anprav commented Oct 27, 2022

Environment details

  1. Specify the API : Places API
  2. OS type and version : linux centos7
  3. Library version and other environment information: 2.1.0

Steps to reproduce

  1. This warning is thrown when the places api returns a place type 'landmark'

Stack trace

(bg thread: 82): Unknown type for enum com.google.maps.model.AddressComponentType: 'landmark'
  com.google.maps.internal.SafeEnumAdapter.read:64
  com.google.maps.internal.SafeEnumAdapter.read:34
  com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read:41
  com.google.gson.internal.bind.ArrayTypeAdapter.read:72
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read:161
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read:266
  com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read:41
  com.google.gson.internal.bind.ArrayTypeAdapter.read:72
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read:161
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read:266
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read:161
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read:266
  com.google.gson.Gson.fromJson:1058
  com.google.gson.Gson.fromJson:1016
  com.google.gson.Gson.fromJson:959
  com.google.gson.Gson.fromJson:927
  com.google.maps.internal.OkHttpPendingResult.parseResponseInternal:297
  com.google.maps.internal.OkHttpPendingResult.parseResponse:230
  com.google.maps.internal.OkHttpPendingResult.onResponse:219
  okhttp3.internal.connection.RealCall$AsyncCall.run:519
  java.util.concurrent.ThreadPoolExecutor.runWorker:1136
  java.util.concurrent.ThreadPoolExecutor$Worker.run:635
  java.lang.Thread.run:833
  com.google.maps.internal.SafeEnumAdapter.read:64
  com.google.maps.internal.SafeEnumAdapter.read:34
  com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read:41
  com.google.gson.internal.bind.ArrayTypeAdapter.read:72
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read:161
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read:266
  com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read:41
  com.google.gson.internal.bind.ArrayTypeAdapter.read:72
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read:161
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read:266
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read:161
  com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read:266
  com.google.gson.Gson.fromJson:1058
  com.google.gson.Gson.fromJson:1016
  com.google.gson.Gson.fromJson:959
  com.google.gson.Gson.fromJson:927
  com.google.maps.internal.OkHttpPendingResult.parseResponseInternal:297
  com.google.maps.internal.OkHttpPendingResult.parseResponse:230
  com.google.maps.internal.OkHttpPendingResult.onResponse:219
  okhttp3.internal.connection.RealCall$AsyncCall.run:519
  java.util.concurrent.ThreadPoolExecutor.runWorker:1136
  java.util.concurrent.ThreadPoolExecutor$Worker.run:635
  java.lang.Thread.run:833
@anprav anprav added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Oct 27, 2022
anprav added a commit to anprav/google-maps-services-java that referenced this issue Oct 28, 2022
@anprav anprav linked a pull request Oct 28, 2022 that will close this issue
@anprav
Copy link
Author

anprav commented Nov 24, 2022

Hey, any updates on this?

@jacekgajek
Copy link

I got the same for "zoo" and "spa"

@uuid0
Copy link

uuid0 commented Oct 30, 2023

This is still an issue in 2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants