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

Bug: Stream connection closed. Resubscribing TypeError: undefined is not a constructor (evaluating 'new TextDecoderStream') #554

Closed
rygine opened this issue Mar 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@rygine
Copy link
Collaborator

rygine commented Mar 21, 2024

Describe the bug

this error happens when attempting to stream topics

Expected behavior

no error when streaming topics

Steps to reproduce the bug

this can occur when trying to stream conversations or messages using conversations.stream, conversations.streamAllMessages, or conversation.streamMessages.

@rygine rygine added the bug Something isn't working label Mar 21, 2024
@rygine
Copy link
Collaborator Author

rygine commented Mar 21, 2024

this error occurs when using the bun runtime as it doesn't support TextDecoderStream as of v1.0.33.

at this time, the XMTP JS SDK is not compatible with bun.

@rygine rygine closed this as completed Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant