fix(webapp): recognize object-store 404 by status code for missing transcripts - #4987
mahenoorsalat wants to merge 1 commit into
Conversation
…anscripts Aws4FetchClient download errors now carry the HTTP status, and isTranscriptNotFound checks status 404 first so an empty reason phrase no longer surfaces as a 502. Fixes triggerdotdev#4984
|
|
Hi @mahenoorsalat, thanks for your interest in contributing! This project requires that pull request authors are vouched, and you are not in the list of vouched users. This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details. |
| // The aws4fetch adapter reports the HTTP status on the error. Check it first: | ||
| // S3-compatible stores may return an empty reason phrase, so the message alone | ||
| // cannot distinguish a 404 from other failures. | ||
| if (status === 404) return true; |
There was a problem hiding this comment.
🔍 Message fallback can override a known status
When a download error has a non-404 status and a Not Found reason phrase, isTranscriptNotFound still returns true. The message fallback runs even when ObjectStoreDownloadError carries a definitive status.
Was this helpful? React with 👍 or 👎 to provide feedback.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #4984
A missing transcript returned 502 instead of 404 when the object store's 404 response had an empty reason phrase.
Prepared with AI assistance.