Giter Club home page Giter Club logo

Comments (21)

xerial avatar xerial commented on June 1, 2024 2

sbt-sonatype 3.9.1 has switched to JSON based API, so this error will no longer happen. Thanks.

from sbt-sonatype.

hubertp avatar hubertp commented on June 1, 2024 1

Right now, I would say this is occassional always. We've been experiencing the same kind of behavior for the past few days.

from sbt-sonatype.

xerial avatar xerial commented on June 1, 2024

It looks like Sonatype is returning HTML response, instead of XML.. Weird...

from sbt-sonatype.

Atry avatar Atry commented on June 1, 2024

I guess there may be an error HTTP status

from sbt-sonatype.

xerial avatar xerial commented on June 1, 2024

case HttpStatus.SC_OK =>

HTTP status code (200) is checked here, so after that XML (or html) will be parsed.

from sbt-sonatype.

Atry avatar Atry commented on June 1, 2024

This bug report is a POST request.

It seems that only 500 error status is checked for POST status.

from sbt-sonatype.

xerial avatar xerial commented on June 1, 2024

Nice catch! Then we need to have more proper status code handling here.

from sbt-sonatype.

regiskuckaertz avatar regiskuckaertz commented on June 1, 2024

hi - have been hit by the same issue, using sbt-sonatype 3.8. is there a temporary workaround? this is blocking some important release on our side.

just retrying... 😅

from sbt-sonatype.

xerial avatar xerial commented on June 1, 2024

Right. Sonatype sometimes returns HTML responses for XML request.

I'm thinking about switching to JSON based APIs and adding more retries around the parsing errors.

from sbt-sonatype.

regiskuckaertz avatar regiskuckaertz commented on June 1, 2024

imo Sonatype should fix this, you do everything right. I've been trying to publish an artefact for 6 hours and it's failing all the time 🤦‍♂

from sbt-sonatype.

hubertp avatar hubertp commented on June 1, 2024

Judging from Sonatype's issue tracker (https://issues.sonatype.org/projects/OSSRH/issues/OSSRH-52239?filter=allopenissues) I would say that this SAXParserException is just because we are getting socket timeouts in a form of automatic HTML failure responses. the plugin should probably still recognize it and print a more informative error message.

from sbt-sonatype.

xerial avatar xerial commented on June 1, 2024

ok. I'll work on handling XML parsing exceptions

from sbt-sonatype.

mpollmeier avatar mpollmeier commented on June 1, 2024

thank you! at the moment, all of our travis-ci.org builds are affected.
unfortunately changing the plugin probably won't fix it, but being able to see the error response from sonatype would help tremendously. let me know if i can help in any way.

from sbt-sonatype.

djspiewak avatar djspiewak commented on June 1, 2024

I hate to be a "me too", but I'm now getting this constantly and cannot publish. :-(

from sbt-sonatype.

mpollmeier avatar mpollmeier commented on June 1, 2024

situation with sonatype seems to improve, some builds have gone through recently.
update: more scheduled maintenance :(
https://status.maven.org/

from sbt-sonatype.

xerial avatar xerial commented on June 1, 2024

Actually if sonatype API is down for such a long time (almost 2 days...), even if we add backoff retries, it will not solve this.

from sbt-sonatype.

mpollmeier avatar mpollmeier commented on June 1, 2024

That's true, but being able to see the error response from sonatype would help tremendously.

from sbt-sonatype.

xerial avatar xerial commented on June 1, 2024

I also introduced different timeout settings for creating a new stage (up to 5 min as this needs to be a single HTTP request) and for closing and promoting stages (up to 60 min). I hope this will mitigate this type of slow response issues.

from sbt-sonatype.

regiskuckaertz avatar regiskuckaertz commented on June 1, 2024

Brilliant 👍

from sbt-sonatype.

xerial avatar xerial commented on June 1, 2024

@mpollmeier Another improvement is that the latest version shows the error response in the warning log even if it is an HTML response :)

from sbt-sonatype.

mpollmeier avatar mpollmeier commented on June 1, 2024

yay thank you! 🙇‍♂️

from sbt-sonatype.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.