-
Notifications
You must be signed in to change notification settings - Fork 49
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: Polyfill Problems in XMTP v3 #857
Comments
Hey @technohippies ! Thanks for the bug report. This should be fixed in an upcoming browser-sdk release, it was fixed in libxmtp in this pr. The root of the issue occurred because of a deserialization bug in the underlying HTTP stream coming from the libxmtp wasm binary. I'll keep this issue updated with progress on the next release, and close the issue once you are able to confirm it fixed your problem |
Thank you! Regarding the example, didn't realise I had to download the entire project and build from root. Got that working, so I can at least continue building my backend. Looking forward to the release |
hey @technohippies, do you still have this issue with the latest browser SDK? |
Testing shortly! Thank you!! |
I'm facing the same problem. I pushed the code reproduce the issue here: |
Describe the bug
Hey team XMTP,
V3 is a huge update, congratulations! I’m having problems with polyfills + workers in v3. I can send/receive about 5-10 messages, and then I routinely get errors from the Worker, which I believe is the stream listener.
I’m getting errors like:
I'm not actually looking for a fix, because I've concluded that I need boilerplate in order to understand how to use the browser-sdk. How these polyfills work, both with and without workers doesn't seem trivial.
If you could make a boilerplate with XMTP + Vite v6, it would be much appreciated. My project seems to have it mostly working, but the stream often fails, and messages aren't received from the stream.
Thank you!
Cross listed: https://community.xmtp.org/t/problems-with-stream-v3-workers-polyfills/884
Expected behavior
No response
Steps to reproduce the bug
You can run my project https://github.com/technohippies/scarlett_vite or visit the URL there, but the code is a mess. I had AI try to fix it, and it was mostly successful, but the occasional stream crashes suggest something more.
The text was updated successfully, but these errors were encountered: