Skip to content

fix(sdk): reject empty effect responses - #3919

Open
ShiroKSH wants to merge 2 commits into
anomalyco:devfrom
ShiroKSH:fix/reject-empty-effect-responses-pr
Open

fix(sdk): reject empty effect responses#3919
ShiroKSH wants to merge 2 commits into
anomalyco:devfrom
ShiroKSH:fix/reject-empty-effect-responses-pr

Conversation

@ShiroKSH

Copy link
Copy Markdown
Contributor

Summary

  • reject empty successful responses in the Effect SDK client
  • cover the response-parsing failure channel with an injected transport

Root cause

Effect's JSON decoder represents an empty response body as null; the native SDK treats the same response as malformed.

Checks

  • bun test test/effect.test.ts
  • bun run typecheck

@github-actions

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions

Copy link
Copy Markdown
Contributor

No actionable findings.

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