Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "msg_code": 200,
- "msg_type": "success",
- "msg_text": "success",
- "msg_data": [
- {
- "pid": "1234567",
- "time": "1459029423",
- "parent_pid": "0",
- },
- false,
- {
- "pid": "987654",
- "time": "1458997403",
- "parent_pid": "0",
- }
- ]
- }
- com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BOOLEAN at line 1 column 9988 path $.msg_data[12]
- HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
- logging.setLevel(logLevel);
- OkHttpClient okHttpClient = new OkHttpClient.Builder()
- .addInterceptor(logging)
- .connectTimeout(60, TimeUnit.SECONDS)
- .writeTimeout(60, TimeUnit.SECONDS)
- .readTimeout(60, TimeUnit.SECONDS)
- .build();
- gooderApi = new Retrofit.Builder()
- .baseUrl(BASE_API_URL)
- .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
- .addConverterFactory(GsonConverterFactory.create())
- .client(okHttpClient)
- .build()
- .create(ApiInterface.class);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement