Skip to content

Without change the SBT file, I get a "java.io.IOException: Error writing to server" exception #48

@ghost

Description

Hello!

I want to upload the JAR artifact to GitHub packages with the plugin. The plugin definitely did work in the past. However, sometimes I just get this exception:
java.io.IOException: Error writing to server

I set the "GIT_TOKEN" environment variable:
image

The corresponding build.sbt file looks like this

publishMavenStyle:=true
githubOwner := "<theOwner>"
githubRepository := "<theRepo>"
githubTokenSource := TokenSource.Environment("GITHUB_TOKEN")

When I run "sbt publish", it sometimes works, sometimes I get the mentioned error. Are there logs (maybe in GitHub) where a more detailed error description is available? For example, the GitHub Token is valid, otherwise the upload would have never worked. Also, I need a reliable configuration of the plugin, because we want to use SBT in a pipeline (in Azure).

Thank you for your help!
Kind regards, LT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions