Has anyone experienced any issues with Retrofit wh...
# squarelibraries
b
Has anyone experienced any issues with Retrofit while using the rxjava2 adapter and moshi converter? I have a service that returns an observable of a type
Copy code
fun list(): Observable<Account>
and I’m using the okhttp mock server to return
Copy code
[{ <account 1> }, { <account 2> }]
and get a
JsonDataException
when executing my tests
Copy code
com.squareup.moshi.JsonDataException: Expected BEGIN_OBJECT but was BEGIN_ARRAY