Skip to content
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

WebHost: Fix 500 Server errors relating to player/multi trackers. #2664

Merged
merged 5 commits into from
Jan 4, 2024

Conversation

ThePhar
Copy link
Member

@ThePhar ThePhar commented Jan 4, 2024

What is this fixing or adding?

Fixes multiple 500 errors when item links are present or if items/locations do not exist in data package.

How was this tested?

Ran webhost with a room with item links and a room with a broken data package and confirmed everything was displaying correctly again.

If this makes graphical changes, please attach screenshots.

image
image

@ThePhar ThePhar added is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. affects: release/blocker Issues/PRs that must be addressed before next official release. affects: webhost Issues/PRs that touch webhost and may need additional validation. labels Jan 4, 2024
@Berserker66
Copy link
Member

instead of the ifs in the template, maybe it's worth doing the same thing CommonClient does? Check out uses of "Utils.KeyedDefaultDict".

@ThePhar
Copy link
Member Author

ThePhar commented Jan 4, 2024

instead of the ifs in the template, maybe it's worth doing the same thing CommonClient does? Check out uses of "Utils.KeyedDefaultDict".

Does that work in Jinja? I'll take a look here in a moment.

@ThePhar
Copy link
Member Author

ThePhar commented Jan 4, 2024

Sure enough.

image

@ThePhar ThePhar merged commit c593a96 into main Jan 4, 2024
21 checks passed
@ThePhar ThePhar deleted the tracker-hotfixes branch January 4, 2024 14:29
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
…chipelagoMW#2664)

* WebHost: Fix player tracker issue with items missing from data package.

 Reported in https://discord.com/channels/731205301247803413/1192202112172576819

* WebHost: Fix multi-tracker error when item links are present.

 Reported in https://discord.com/channels/731205301247803413/1192104719959724062

* Use Utils.KeyedDefaultDict instead of checking for key

* formatted revert

* import tweak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: release/blocker Issues/PRs that must be addressed before next official release. affects: webhost Issues/PRs that touch webhost and may need additional validation. is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants