Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

TokenManager: wrong call of RequestBody.create #1

Closed
cjaentsch opened this issue Aug 16, 2019 · 2 comments
Closed

TokenManager: wrong call of RequestBody.create #1

cjaentsch opened this issue Aug 16, 2019 · 2 comments

Comments

@cjaentsch
Copy link

The create method on RequestBody (okhttp3.9.0) is not correctly called in TokenManager.java:
body = RequestBody.create(jsonBody, JSON);

Correct would be this:
body = RequestBody.create(JSON, jsonBody);

@cjaentsch
Copy link
Author

Still incorrect after latest update... Or are you using a different version of okhttp?

@auxdevelopment
Copy link
Member

Since version 4.0.0 of OkHttp this signature has been deprecated.

We are currently using version 4.0.1 of OkHttp as can be seen in the build.gradle file of the client project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants