mirror of
https://github.com/games-on-whales/wolf.git
synced 2026-10-15 21:12:08 +00:00
[GH-ISSUE #526] API returns corrupted JSON when several requests come in at the same time #319
Labels
No labels
🧠 1 - 🤖 999
AMD
bug
bug
cannot reproduce
documentation
duplicate
easy
enhancement
enhancement
enhancement
fixed?
fixed?
good first issue
hard
help wanted
Intel
invalid
LXC
medium
moonlight-protocol
Multi GPU
nixos
not a bug
nvidia
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/wolf#319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @To0wnn on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/games-on-whales/wolf/issues/526
What happens
When several requests to the API arrive at the same time,
/api/v1/profilessometimes returns a broken body: the length is correct, but some bytes in the middle are garbage, so the JSON can't be parsed.How to reproduce
With a config of ~76 apps (the response is ~356 KB):
Result: about 1 in 50 responses is corrupted. The same 40 requests sent one after another are all fine.
Why it matters
Wolf Den's Apps page asks for the profiles once per app, all at the same time, so with many apps it almost always hits a broken response and shows an error page (
Could not deserialize the response body stream as GamesOnWhales.ProfileListResponse).Workaround we use
A small proxy in front of the socket that sends requests to Wolf one at a time (passing
/api/v1/eventsstraight through). With that, 200 parallel requests all come back fine.Setup
ghcr.io/games-on-whales/wolf:stable(built 2026-09-29), rootful podman 5.8.7, NVIDIA (manual driver volume), Bazzite.