-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Nuget badges inaccessible #655
Comments
I also experience the same issue on my repository with not that many views. |
I have the same with Hangfire project. |
seems it is fixed (2016/02/23 11PM LMT) |
Confirming, fixed 🎉 |
Down again |
we moved partly to https://badge.fury.io/for/nu, which do work (but has less features) |
Shields NuGet badges stopped working for me as well so I added support for NuGet badges to buildstats.info. |
any update on this? |
Seems this is the culprit: Line 3163 in 5e4c711
NuGet returns a different content type, which is probably why shields.io breaks on the XML/Atom response received from NuGet. Alternatively, you may want to use the V3 API for shields as it is much, much faster. The goal is to pick the latest version, right?
|
@maartenba thx for the tech info! @espadrine can you help us with this? |
Use different composite NuGet badge to work around the shields.io version no longer working (badges/shields#655).
Use different composite NuGet badge to work around the shields.io version no longer working (badges/shields#655).
The MyGet badge is broken too. |
Good luck. We have issues with the NuGet badges for more then 30 days, without any response of shields.io team. |
badges/shields#655 isn't getting fixed it seems. So we're switching to buildstats.info
@danbarua I have added a MyGet badge to buildstats.info. Please have a look if it suits you... |
i moved to buildstats |
We were using shields.io for this before, but recent NuGet changes look to have broken this badge (badges/shields#655).
@dustinmoris Sweet, thanks! |
Confirmed to still be broken :( |
Still broken for me too. |
Likewise |
Sorry. PRs get priority treatment, which unfortunately can only go as fast as I can review them.
Yes, I receive XML which I parse as JSON. @Alxandr do you know if there is an easy fix? Chocolatey still works fine with the same code, though.
That could be done with |
@espadrine: @maartenba's prescribed fix looks pretty simple, and his URLs result in JSON responses so it would avoid you having to parse XML. |
@AArnott I am very much open to PRs on this. I know very little about NuGet, let alone its API. Given the range of what we support, it feels nontrivial for me to replace it without breaking Chocolatey, even if the described fix was clear. But as I said, I cannot find It is unclear to me how to ask for the latest version (with or without including prerelease ones), and doing it manually will cause pain (should we use semver? what if there is a non-semver version in the list?). I don't know where the download information is stored. |
Oops, need to be |
@espadrine: for what it's worth, both I and @vbfox tried to prepare a PR for this change, but we couldn't get your project's dependencies installed locally to prepare the fix. We both have Windows machines, and @vbfox even tried setting up a Linux box. |
@maartenba thanks. What is the purpose of the registration URL? Do you know if there is a way to ask for the latest version, as we had before when using filters? Also, where is the download information? Is there a good link to the most exhaustive piece of documentation on the v3 API? @AArnott A change I merged yesterday should make local testing much easier, as the project no longer relies on Cairo. |
@espadrine The registration URL has all versions of the package. There is also Regarding downloads, there is no API for that currently. |
Unfortunately, chocolatey doesn't seem to use the v3: https://api.chocolatey.org/v3/flatcontainer/scriptcs/index.json The same goes for myget: neither https://www.myget.org/F/yolodev/api/v3/flatcontainer/fsharpsupport/index.json nor https://api.myget.org/F/yolodev/v3/flatcontainer/fsharpsupport/index.json |
shouldn't all those be different paths though? Why would chocolatey or myget limit what API you use for nuget.org? Aren't (or shouldn't) they different badges altogether? |
They have different domains, but the same code is running on each of those domains, so we could perform the same requests. |
Myget supports v3. Chocolatey I have no idea. |
@alexandr do you know what URL I should try for MyGet? |
The v2 API returned XML even though we asked for JSON. MyGet is still not working. Part of #655.
The entrypoint of a feed is here https://www.myget.org/F/dotnet/api/v3/index.json If you just go to the nuget gallery and pick a random feed (like I just did) it'll tell you. |
I can see https://dotnet.myget.org/F/dotnet-corert/api/v3/flatcontainer/ in there. I'm not sure how to get fsharpsupport, for instance: https://dotnet.myget.org/F/dotnet-corert/api/v3/flatcontainer/fsharpsupport/index.json |
The dotnet feed and the yolodev feed are not the same. https://dotnet.myget.org/F/dotnet-corert/api/v3/flatcontainer/Microsoft.DotNet.AppDep/index.json |
The yolodev feed still exists, though, right? https://www.myget.org/F/yolodev/api/v3/flatcontainer/FSharpSupport/index.json yields nothing, and yet https://yolodev.myget.org/F/yolodev/api/v3/index.json yields https://www.myget.org/F/yolodev/api/v3/flatcontainer/. |
Yes, but that package no longer does :) https://www.myget.org/F/yolodev/api/v3/flatcontainer/YoloDev.Dnx.FSharp/index.json |
Unfortunately, the download information is lost in translation for both nuget and myget. |
Thanks for the fix! |
Awesome! Thanks! On Tue, Mar 15, 2016 at 3:01 PM Julian Verdurmen notifications@github.com
|
Cheers! 👏 |
Rollback this after badges/shields#655 resolved
…sion no longer working (badges/shields#655)
…sion no longer working (badges/shields#655)
…sion no longer working (badges/shields#655)
(Comment hijacked to summarize the advancement.)
shields/server.js
Line 3163 in 5e4c711
NuGet returns a different content type, which is probably why shields.io breaks on the XML/Atom response received from NuGet.
Using the v3 API:
https://api.nuget.org/v3/flatcontainer/{packageid-lowercase}/index.json
. The JSON has all versions of the package and can tell you in one go what the latest version is. eg, https://api.nuget.org/v3/flatcontainer/microsoft.aspnet.mvc/index.jsonThere is no download information in v3, we'd have to keep the old system which still works for Chocolatey.
Chocolatey doesn't seem to use the v3: https://api.chocolatey.org/v3/flatcontainer/scriptcs/index.json, so we can't use it even for versions.
We cannot find the v3 endpoint for myget: neither https://www.myget.org/F/yolodev/api/v3/flatcontainer/fsharpsupport/index.json nor https://api.myget.org/F/yolodev/v3/flatcontainer/fsharpsupport/index.json work.
(Original comment here.)
The NuGet badges are inaccessible for days. Is this a rate limit? Is there something I can do? Is this for every visitor? Can you cache more at your side?
Current what I see:
One of the links:
We see it also on shield.io:
We have arround 5K views/day
The text was updated successfully, but these errors were encountered: