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

Bad call to okhttp3.RequestBody.create causes NoSuchMethodError #45

Closed
franck102 opened this issue Jun 7, 2023 · 3 comments
Closed
Assignees

Comments

@franck102
Copy link

franck102 commented Jun 7, 2023

Hi all,

maven/io.apimatic/okhttp-client-adapter@0.1.6 has a dependency on com.squareup.okhttp3:okhttp:4.10.0

According to this page
OkClient.java

at line 210 the apimatic client adapter calls RequestBody.create(content, mediaType).

There is no such method in okhttp3, the correct signature is create(mediaType, content).

Related issue: square/square-java-sdk#104

@asadali214
Copy link
Collaborator

asadali214 commented Jun 8, 2023

Hi @frnck102

Thanks for highlighting this issue. We'll look into this and circle back soon.

Cheers!

@asadali214 asadali214 self-assigned this Jun 13, 2023
@asadali214
Copy link
Collaborator

It appears that you have already resolved this issue based on your feedback here using the latest alpha version com.squareup.okhttp3 : 5.0.0-alpha.11 along with square dependency.

<dependency>
   <groupId>com.squareup</groupId>
   <artifactId>square</artifactId>
   <version>28.0.0.20230419</version>
   <scope>compile</scope>
</dependency>
<dependency>
   <groupId>com.squareup.okhttp3</groupId>
   <artifactId>okhttp</artifactId>
   <version>5.0.0-alpha.11</version>
</dependency>

Hence, we are marking this issue as closed. Feel free to re-open the issue anytime you face such an exception again.

@franck102
Copy link
Author

I haven't quite resolved this issue since my SendInBlue APIs are broken due to the exclusions I had to introduce as mentioned in that other post.

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

No branches or pull requests

2 participants