Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed method call for okhttp3 #344

Closed
wants to merge 1 commit into from

Conversation

SachinMittal101
Copy link

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR
---- Fixed method call to okhttp3 RequestBody create method. Arguments were passed incorrectly earlier.

Describe the new behavior from this PR, and why it's needed
Issue # Caused by: java.lang.NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)

Feel free to discuss any implementation details and suggest changes.

@v1r3n v1r3n requested a review from jmigueprieto December 20, 2024 08:33
@jmigueprieto
Copy link
Contributor

The correct call is being used in serialize and handleResponse. IF this was not the case, no request would have been successful.

The changes suggest using a deprecated method call.

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

Successfully merging this pull request may close these issues.

2 participants