Skip to content

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

Merged
IMB11 merged 5 commits intomodrinth:mainfrom
IsQuyet:fix/query-retry-default-1
Apr 16, 2026
Merged

fix(query): set default query retry to 1#5743
IMB11 merged 5 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

modrinth-bot commented Apr 3, 2026

Pull request changelog

App

Added

Changed

Deprecated

Removed

Fixed

Security

Website

Added

Changed

Deprecated

Removed

Fixed

  • Fixed 404 page not loading quickly. (Thank you @IsQuyet)

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.

IMB11
IMB11 approved these changes Apr 16, 2026
@IMB11 IMB11 enabled auto-merge April 16, 2026 11:29
@IMB11 IMB11 added this pull request to the merge queue Apr 16, 2026
Merged via the queue into modrinth:main with commit 7b5c746 Apr 16, 2026
6 checks passed
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