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

Publication fails with java.io.IOException: Error writing to server (for larger plugin payloads?) #150

Open
abstratt opened this issue Jun 21, 2022 · 0 comments
Labels
a:bug Something isn't working

Comments

@abstratt
Copy link
Member

abstratt commented Jun 21, 2022

Sometimes, plugin publication fails with java.io.IOException: Error writing to server. Other reports in the wild suggest this may be due to payload size and failing to enabling chunking in HttpURLConnection. See:

Even though the cause is likely different, it has similar symptoms to gradle/gradle#14193 and #116 (user can no longer republish, as even though publication failed, we end up with partial changes committed to the database). I will not cover that aspect of the failure mode, as #116 covers that already.

Expected Behavior

Plugin publication succeeds, or is rejected with a helpful error message ("Plugin file is too large, limit is XYZ").

Current Behavior

Plugin publication fails with:

java.io.IOException: Error writing to server
at com.gradle.publish.upload.Uploader.putStream(Uploader.java:28)
at com.gradle.publish.upload.Uploader.putFile(Uploader.java:14)
at com.gradle.publish.PortalPublisher.uploadArtifactIfNecessary(PortalPublisher.java:122)
at com.gradle.publish.PortalPublisher.publishArtifacts(PortalPublisher.java:113)
at com.gradle.publish.PortalPublisher.publishToPortal(PortalPublisher.java:56)
at com.gradle.publish.PublishTask.publish(PublishTask.java:78)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)
... 119 more

Context

User is unable to publish a plugin.

Steps to Reproduce

Seems to be related to plugin payload size (user's plugin payload size was 90mb).

Your Environment

Full stacktrace attached.

plugin-portal-requests-150.txt

@abstratt abstratt added the a:bug Something isn't working label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant