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
We recently ran into an issue when making the API call to /v1.2/requests/current via RidesService.getCurrentRide(). It seems the driver number sometimes return curly braces {} instead of String or null. Below is a scrubbed payload we received:
PlatformExceptionMapper:handleRuntimeException Unexpected runtime exception:
com.squareup.moshi.JsonDataException: Expected a string but was BEGIN_OBJECT at path $.driver.phone_number
at com.squareup.moshi.BufferedSourceJsonReader.nextString(BufferedSourceJsonReader.java:592) ~[moshi-1.2.0.jar!/:?]
at com.squareup.moshi.StandardJsonAdapters$10.fromJson(StandardJsonAdapters.java:203) ~[moshi-1.2.0.jar!/:?]
at com.squareup.moshi.StandardJsonAdapters$10.fromJson(StandardJsonAdapters.java:201) ~[moshi-1.2.0.jar!/:?]
at com.squareup.moshi.JsonAdapter$1.fromJson(JsonAdapter.java:68) ~[moshi-1.2.0.jar!/:?]
at com.squareup.moshi.ClassJsonAdapter$FieldBinding.read(ClassJsonAdapter.java:197) ~[moshi-1.2.0.jar!/:?]
at com.squareup.moshi.ClassJsonAdapter.fromJson(ClassJsonAdapter.java:159) ~[moshi-1.2.0.jar!/:?]
at com.squareup.moshi.JsonAdapter$1.fromJson(JsonAdapter.java:68) ~[moshi-1.2.0.jar!/:?]
at com.squareup.moshi.ClassJsonAdapter$FieldBinding.read(ClassJsonAdapter.java:197) ~[moshi-1.2.0.jar!/:?]
at com.squareup.moshi.ClassJsonAdapter.fromJson(ClassJsonAdapter.java:159) ~[moshi-1.2.0.jar!/:?]
at com.squareup.moshi.JsonAdapter$1.fromJson(JsonAdapter.java:68) ~[moshi-1.2.0.jar!/:?]
at com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:33) ~[moshi-1.2.0.jar!/:?]
at retrofit2.converter.moshi.MoshiResponseBodyConverter.convert(MoshiResponseBodyConverter.java:32) ~[converter-moshi-2.0.2.jar!/:?]
at retrofit2.converter.moshi.MoshiResponseBodyConverter.convert(MoshiResponseBodyConverter.java:23) ~[converter-moshi-2.0.2.jar!/:?]
at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:223) ~[retrofit-2.5.0.jar!/:?]
at retrofit2.OkHttpCall.execute(OkHttpCall.java:186) ~[retrofit-2.5.0.jar!/:?]
...
Hello team,
We recently ran into an issue when making the API call to
/v1.2/requests/currentviaRidesService.getCurrentRide(). It seems the driver number sometimes return curly braces{}instead ofStringornull. Below is a scrubbed payload we received:Here is the exception:
We are using Spring Boot 5.1.8, SDK v0.8.0.