Skip to content

fix(v2): prevent duplicate input attachments for File instances and improve 4xx/5xx error handling - #28

Open
yappermoar-boop wants to merge 1 commit into
prodialabs:masterfrom
yappermoar-boop:fix-prodia-input-dedup-and-error-handling
Open

fix(v2): prevent duplicate input attachments for File instances and improve 4xx/5xx error handling#28
yappermoar-boop wants to merge 1 commit into
prodialabs:masterfrom
yappermoar-boop:fix-prodia-input-dedup-and-error-handling

Conversation

@yappermoar-boop

Copy link
Copy Markdown

Fixed an issue in v2/index.ts where File instances in options.inputs matched both instanceof File and instanceof Blob checks, causing File inputs to be appended twice to FormData. Converted input type checks into an else-if chain. Also improved 4xx/5xx response error propagation when job.error is absent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant