You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in native call
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NUMBER at line 1 column 2 path $
at com.google.gson.Gson.fromJson(Gson.java:975)
at com.google.gson.Gson.fromJson(Gson.java:928)
at com.google.gson.Gson.fromJson(Gson.java:877)
at com.google.gson.Gson.fromJson(Gson.java:848)
at com.mapbox.geojson.Feature.fromJson(Feature.java:82)
at com.rnmapbox.rnmbx.components.styles.sources.RNMBXShapeSource.getClusterLeaves(RNMBXShapeSource.kt:280)
at com.rnmapbox.rnmbx.components.styles.sources.RNMBXShapeSourceModule$getClusterLeaves$1.invoke(RNMBXShapeSourceModule.kt:51)
at com.rnmapbox.rnmbx.components.styles.sources.RNMBXShapeSourceModule$getClusterLeaves$1.invoke(RNMBXShapeSourceModule.kt:50)
at com.rnmapbox.rnmbx.utils.ViewTagResolver.withViewResolved$lambda$4(ViewTagResolver.kt:63)
at com.rnmapbox.rnmbx.utils.ViewTagResolver.$r8$lambda$ZFXWzquiK28lSR5tbH0BihabahM(Unknown Source:0)
at com.rnmapbox.rnmbx.utils.ViewTagResolver$$ExternalSyntheticLambda0.run(Unknown Source:8)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NUMBER at line 1 column 2 path $
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:384)
at com.mapbox.geojson.Feature$GsonTypeAdapter.read(Feature.java:579)
at com.mapbox.geojson.Feature$GsonTypeAdapter.read(Feature.java:497)
at com.google.gson.Gson.fromJson(Gson.java:963)
... 19 more
Expected behavior
App shouldn't crash and should return collection
Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered:
Mapbox Implementation
Mapbox
Mapbox Version
default
React Native Version
0.73.4
Platform
iOS, Android
@rnmapbox/maps
version10.1.10
Standalone component to reproduce
Observed behavior and steps to reproduce
Exception in native call
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NUMBER at line 1 column 2 path $
at com.google.gson.Gson.fromJson(Gson.java:975)
at com.google.gson.Gson.fromJson(Gson.java:928)
at com.google.gson.Gson.fromJson(Gson.java:877)
at com.google.gson.Gson.fromJson(Gson.java:848)
at com.mapbox.geojson.Feature.fromJson(Feature.java:82)
at com.rnmapbox.rnmbx.components.styles.sources.RNMBXShapeSource.getClusterLeaves(RNMBXShapeSource.kt:280)
at com.rnmapbox.rnmbx.components.styles.sources.RNMBXShapeSourceModule$getClusterLeaves$1.invoke(RNMBXShapeSourceModule.kt:51)
at com.rnmapbox.rnmbx.components.styles.sources.RNMBXShapeSourceModule$getClusterLeaves$1.invoke(RNMBXShapeSourceModule.kt:50)
at com.rnmapbox.rnmbx.utils.ViewTagResolver.withViewResolved$lambda$4(ViewTagResolver.kt:63)
at com.rnmapbox.rnmbx.utils.ViewTagResolver.$r8$lambda$ZFXWzquiK28lSR5tbH0BihabahM(Unknown Source:0)
at com.rnmapbox.rnmbx.utils.ViewTagResolver$$ExternalSyntheticLambda0.run(Unknown Source:8)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NUMBER at line 1 column 2 path $
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:384)
at com.mapbox.geojson.Feature$GsonTypeAdapter.read(Feature.java:579)
at com.mapbox.geojson.Feature$GsonTypeAdapter.read(Feature.java:497)
at com.google.gson.Gson.fromJson(Gson.java:963)
... 19 more
Expected behavior
App shouldn't crash and should return collection
Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered: