Fix: private league fetch failure crashes the trader. (TradeQuery.lua:157: table index is nil) (Cloudflare)#9912
Open
apYdr6uxv wants to merge 2 commits into
Conversation
Makes it too long for UI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9176 .
Description of the problem being solved:
When retrieving leagues, if private leagues fetch fails, it takes down the trader, even if public leagues retrieve worked.
This fix proposes that it should instead continue , with just the public leagues it could retrieve.
Cause
Private leagues fetch may hit Cloudflare challenge pages.
This is not an expected response, hence the crash. (The contents will be "Enable Javascript and cookies to continue")
This may not always happen, depending on how Cloudflare feels about you. (i.e. flaky bug)
Using a VPN might make it easier to reproduce.
It crashes on Get Currencies Conversion Rates or so.
Other changes
Steps taken to verify a working solution:
Link to a build that showcases this PR:
n/a
Before screenshot:
n/a
After screenshot:
n/a