Skip to content

fix(query): set default query retry to 1#5743

Open
IsQuyet wants to merge 2 commits intomodrinth:mainfrom
IsQuyet:fix/query-retry-default-1
Open

fix(query): set default query retry to 1#5743
IsQuyet wants to merge 2 commits intomodrinth:mainfrom
IsQuyet:fix/query-retry-default-1

Conversation

@IsQuyet
Copy link
Copy Markdown
Contributor

@IsQuyet IsQuyet commented Apr 3, 2026

close #5450

The query is automatically retried by default (retry = 3), and currently it will make requests to versions v2 and v3 in parallel. This results in two sets of requests, with each set making 4 requests, for a total of 8 requests. This is why the 404 page takes a while to appear.

Since I was unable to reproduce the issue on my local development server, I verified that the changes were effective by overriding the obfuscated code of the website locally in my browser.

Setting retry to false directly will be the fastest, but the specific value should be determined by someone who understands the impact better.

@modrinth-bot
Copy link
Copy Markdown
Member

Pull request changelog

App

Added

Changed

Deprecated

Removed

Fixed

Security

Website

Added

Changed

Deprecated

Removed

Fixed

Security

Hosting

Added

Changed

Deprecated

Removed

Fixed

Security

@IMB11
Copy link
Copy Markdown
Member

IMB11 commented Apr 3, 2026

This is good but it probably isn't the right solution, we should instead configure tanstack to stop retrying if it's a 404 response

@IsQuyet
Copy link
Copy Markdown
Contributor Author

IsQuyet commented Apr 3, 2026

This is good but it probably isn't the right solution, we should instead configure tanstack to stop retrying if it's a 404 response

Of course, I also think conditional expressions would be better, and I will modify them later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

404 not found page loads for a long time

3 participants