fix(studio): stop 3M/day rejection flood from composition 404s#1033
Merged
Conversation
Two fixes for the 3M+ unhandled_promise_rejection events/day spike: 1. Filter: suppress "Error fetching ... 404" rejections from composition code — these are asset-not-found content errors, not Studio bugs. 2. Rate-limit: cap both error and rejection telemetry at 50 per session. After the cap, emit a single *_cap_reached event so we know capping occurred without generating unlimited events. 3. Root cause: webAudioTransport now checks response.ok before decode and caches failed URLs in _failedSrcs so repeat ticks don't re-fetch the same 404 on every playback frame. Also add playground/ to fallow ignorePatterns — local experiment directory was tripping the audit gate.
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.
Summary
webAudioTransportso playback ticks don't re-fetch the same 404 every frameTest plan
bun run --cwd packages/core build— cleanbun run --cwd packages/studio build— cleanbun run --cwd packages/core test— 984 tests pass