-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Handle Modrinth API returning 404s randomly #3276
Comments
I'm not sure if there's anything I can do. The behavior of 3rd party APIs is beyond my control. Thanks for researching and linking to their issues. I think all we can do is wait for them to fix those issues. |
I guess there is not much we can do indeed, maybe adding a disclaimer to the |
I found that the Calling |
The image tooling is already using
Your issue is the first I'm hearing of any of this, so I am quite hesitant to put a documentation level disclaimer at this point. If I start hearing of numerous users running into this, then I can reconsider. BTW, what "better solutions" do you propose? |
If we look at the issues I linked to in my first message we can see this has been a problem for some people for at least the past 6 months. Now the issue is that I don't know the actual size of 'some people' I only know 3 of them. Maybe a first step would be for you to try to call https://api.modrinth.com/v2/project/MdwFAVRL/version?loaders=%5B%22fabric%22%5D&game_versions=%5B%221.21.1%22%5D a few times and see if you ever get a 404, it happens about 1/3rd of the time for me. |
I'm having this issue as well |
Everyone, please add comments and upvote the linked issues. The only solution is to get Modrinth's attention on this to fix it. |
Enhancement Type
Improve an existing feature
Describe the enhancement
Here are linked modrinth issues
modrinth/code#2421
modrinth/code#2557
For some projects the Modrinth API will randomly return either a 404 or the expected JSON content that's used to determine what to download when using
MODRINTH_PROJECT
As these issues have been opened for a little while I was wondering if there was anything that could be done to circumvent this problem. I'm not familiar with Modrinth's API so I don't know if there are any fallback routes that could be used.
Here is the issue that I get:
Trying to load the URL manually we can see that it sometimes displays the JSON and sometimes a 404.
Also, I don't think it's entirely random as trying to read the headers using curl I ALWAYS get a 404:
curl -I "https://api.modrinth.com/v2/project/MdwFAVRL/version?loaders=%5B%22fabric%22%5D&game_versions=%5B%221.21.1%22%5D"
But not using
-I
and reading the response directly works most of the time in my case.For now I can solve the problem by manually adding this mod to my server but I want people to be aware that this is a thing.
The text was updated successfully, but these errors were encountered: