mirror of
https://github.com/Comfy-Org/comfy-typescript-sdk.git
synced 2026-11-04 23:47:27 +00:00
[PR #14] [MERGED] fix: map entity-specific 404 codes in high-level toSdkError #24
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
bug
cursor-review-pin
effort:medium
effort:small
effort:trivial
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-typescript-sdk#24
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?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-typescript-sdk/pull/14
Author: @wei-hai
Created: 7/22/2026
Status: ✅ Merged
Merged: 7/22/2026
Merged by: @wei-hai
Base:
main← Head:fix/highlevel-notfound-codes📝 Commits (1)
8e60ed2fix: map entity-specific 404 codes in the high-level toSdkError too📊 Changes
2 files changed (+7 additions, -0 deletions)
View changed files
📝
src/sdk/exceptions.test.ts(+2 -0)📝
src/sdk/exceptions.ts(+5 -0)📄 Description
Follow-up to #13. That fix added
job_not_found/asset_not_found→NotFoundto the low-level error map, but the high-leveltoSdkError(insdk/exceptions.ts, what the client actually surfaces) has its own code map that still fell through to a genericComfyError. So a missing job/asset was still not a typedNotFoundat the SDK surface.Add the codes to the high-level map too, with a test. Found while running the TS SDK through prod conformance.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.