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
Describe the bug
With 4.10 version of okhttp, there's a breaking change with use of function RequestBody.create(payload, JSON). It's changed to RequestBody.create(JSON, payload)
** Expect**
Would be great to have the dependency updated and fix complier issue.
** Version **
Works with version 4.9.3
Compiler errors with version 4.10
complete the following information):**
The text was updated successfully, but these errors were encountered:
fathimaSheikh
changed the title
OkHttpClientAdapter references incorrect doPost method
Upgraded okhttp dependency has breaking change.
Oct 9, 2023
We will definitely update the okhttp dependency to the latest version (4.12), but I am confused about the problem because according to the okhttp code the correct order of the arguments in RequestBody.create() is to put the content first and then the content type, see here. The other order (content type first) that you suggest is deprecated.
Describe the bug
With 4.10 version of okhttp, there's a breaking change with use of function
RequestBody.create(payload, JSON)
. It's changed toRequestBody.create(JSON, payload)
** Expect**
Would be great to have the dependency updated and fix complier issue.
** Version **
complete the following information):**Works with version 4.9.3
Compiler errors with version 4.10
The text was updated successfully, but these errors were encountered: