Failed to fetch, from repository: chocolatey-proxy java.io.IOException: Invalid nuget feed XML received #2608
Unanswered
cristianburca
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I've converted this over to a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@cristianburca based on the error you are receiving:
It sounds to me like you "could" be running into a rate limiting scenario, where an HTML page is being returned stating that you are being rate limited, instead of the main packages feed which is what is expected. When this happens, are you able to access community.chocolatey.org directly in the browser? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've setup a nuget group called chocolatey-group having chocolatey-proxy and chocolatey-hosted inside into my Nexus and got the below issue when running choco install googlechrome --version 98.0.4758.102 -s nexus
Any clue?
Best regards
/Packages(Id='googlechrome',Version='98.0.4758.102')~=(/v3/repository-signatures/\d+/)certificates/?(.+).crt
2022-02-28 13:59:07,559+0000 DEBUG [qtp1303446896-366855] *UNKNOWN com.sonatype.nexus.repository.nuget.internal.NugetFeedFetcher - Fetching: GET https://chocolatey.org/api/v2/Packages(Id='googlechrome',Version='98.0.4758.102') HTTP/1.1
2022-02-28 13:59:07,746+0000 DEBUG [qtp1303446896-366855] *UNKNOWN com.sonatype.nexus.repository.nuget.internal.NugetFeedFetcher - Response: HttpResponseProxy{HTTP/1.1 200 OK [Content-Length: 2290, Content-Type: text/html; charset=UTF-8, Date: Mon, 28 Feb 2022 13:59:07 GMT, Age: 0, Proxy-Connection: keep-alive, Via: 1.0 ] ResponseEntityProxy{[Content-Type: text/html; charset=UTF-8,Content-Length: 2290,Chunked: false]}}
2022-02-28 13:59:07,746+0000 DEBUG [qtp1303446896-366855] *UNKNOWN com.sonatype.nexus.repository.nuget.internal.NugetFeedFetcher - Status: HTTP/1.1 200 OK
2022-02-28 13:59:07,746+0000 DEBUG [qtp1303446896-366855] *UNKNOWN com.sonatype.nexus.repository.nuget.internal.NugetFeedFetcher - Entity: ResponseEntityProxy{[Content-Type: text/html; charset=UTF-8,Content-Length: 2290,Chunked: false]}
2022-02-28 13:59:07,747+0000 TRACE [qtp1303446896-366855] *UNKNOWN com.sonatype.nexus.repository.nuget.internal.v2.orient.OrientNugetProxyGalleryFacetImpl - Failed to fetch, from repository: chocolatey-proxy
java.io.IOException: Invalid nuget feed XML received
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Parsed xml has an unexpected start tag: 'html' (expected 'feed' or 'entry')
at com.sonatype.nexus.repository.nuget.odata.FeedSplicer.started(FeedSplicer.java:84)
at com.sonatype.nexus.repository.nuget.odata.XmlSplicer.consume(XmlSplicer.java:67)
at com.sonatype.nexus.repository.nuget.odata.FeedSplicer.consumePage(FeedSplicer.java:58)
at com.sonatype.nexus.repository.nuget.internal.NugetFeedFetcher.parseFeed(NugetFeedFetcher.java:103)
... 131 common frames omitted
If you compare these in terms of output, you will see some differences.
https://www.nuget.org/api/v2/Packages(Id='AWSSDK.Core',Version='3.7.1.4')
https://chocolatey.org/api/v2/Packages(Id='googlechrome',Version='98.0.4758.102')
Beta Was this translation helpful? Give feedback.
All reactions