You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using bun to run apollo server and nestjs, it worked fine, both Query and Mutation works normally, but when I start working on subscription it always fails to connect (I was using the apollo playground).
No error was shown, after debugging for a few hours I realized that it's bun runtime that causes the problem.
Bun is a really good tool. It allows me to import typescript from other packages without compiling to JS. I can't really switch to nodejs for the project.
I used WebSocket with bun, it works.
There is no error message, so I don't know what's going on. Apollo Server is probably using some API bun doesn't implement.
The text was updated successfully, but these errors were encountered:
I would be happy for this project to support Bun, but I don't have the time to take on this work. I will gladly help with and review a PR which resolves this if you're interested in trying to fix it.
I've outlined my desired approach in another issue: #7733 (comment)
I'm going to close this as a duplicate of #7733 and specifically mention subscriptions there as well. Which subscription library were you using? That part is likely a separate issue for a separate project.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.
I was using bun to run apollo server and nestjs, it worked fine, both Query and Mutation works normally, but when I start working on subscription it always fails to connect (I was using the apollo playground).
No error was shown, after debugging for a few hours I realized that it's bun runtime that causes the problem.
I followed this tutorial https://www.apollographql.com/docs/apollo-server/data/subscriptions#basic-runnable-example
Subscription works fine when using nodejs or
ts-node-esm
, but fails as long as I switch to bun.Reproduction
Bun is a really good tool. It allows me to import typescript from other packages without compiling to JS. I can't really switch to nodejs for the project.
I used WebSocket with bun, it works.
There is no error message, so I don't know what's going on. Apollo Server is probably using some API bun doesn't implement.
The text was updated successfully, but these errors were encountered: