Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve SSE error code reporting #137

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Conversation

jspahrsummers
Copy link
Member

@jspahrsummers jspahrsummers commented Jan 23, 2025

This change ensures HTTP error codes from SSE are propagated through the error that's thrown, which is necessary to cleanly handle 401 Unauthorized for MCP auth.

@jspahrsummers jspahrsummers marked this pull request as ready for review January 24, 2025 13:46
@jspahrsummers jspahrsummers merged commit d60b0fb into main Jan 24, 2025
4 checks passed
@jspahrsummers jspahrsummers deleted the justin/improve-sse-errors branch January 24, 2025 13:46
MediaInfluences pushed a commit to MediaInfluences/typescript-sdk that referenced this pull request Apr 3, 2025
…/justin/improve-sse-errors

Improve SSE error code reporting
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.

None yet

1 participant