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

NoSuchMethodError on binary content with Groovy 3 #91

Open
Bert-R opened this issue Jun 5, 2021 · 1 comment
Open

NoSuchMethodError on binary content with Groovy 3 #91

Bert-R opened this issue Jun 5, 2021 · 1 comment

Comments

@Bert-R
Copy link

Bert-R commented Jun 5, 2021

When receiving a binary response using Groovy 3, the following exception occurs:

java.lang.NoSuchMethodError: org.codehaus.groovy.runtime.DefaultGroovyMethods.leftShift(Ljava/io/OutputStream;Ljava/io/InputStream;)Ljava/io/OutputStream;
    at groovyx.net.http.HTTPBuilder.defaultSuccessHandler(HTTPBuilder.java:620)
    at groovyx.net.http.RESTClient.defaultSuccessHandler(RESTClient.java:246)
...

The response carries the following headers:

Content-Disposition: form-data; name="file"; filename="MyPhoto.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
@Bert-R
Copy link
Author

Bert-R commented Jun 5, 2021

Immediately after logging this issue, I found PR #90, which fixes this issue.

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

1 participant