-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Implement http2
#887
Comments
Same behavior happening here but my issue is with GRPC from etcd3. |
So bug is gone now in 0.1.7 but now i get a segmentation fault :/ |
its a seg fault at 0 so probably a null pointer error but i'm no zig expert. |
same issue with "firebase-admin". bun v0.1.9 |
I am now getting "error: Cannot find module "./framer" from "bun:wrap" again bun v0.1.10 |
error: Cannot find module "./framer" from "bun:wrap" |
http2
module
We do not support the Node.js |
I just discovered bun and got hit with this on the very first script I tried to run 😦 The script talks to firebase services so uses grpc so requires http2. Back to ts-node for now 🤷 |
Same here: gRPC and gRPC-web is getting traction in new projects, firebase in particular, and bun is grand for new projects. Also this hits with a segmentation fault which takes time to diagnose to this issue.. |
Looks like |
I am getting http2 error for googleapis Error: Cannot find package "http2" from "/home/royaltsp/tsp/node/google-drive-files/google-drive-demo/node_modules/googleapis-common/build/src/http2.js" |
kind of a big blocker for adoption. I literally can't solve my problem using bun so now I need to rewrite for deno or node.js which is a massive drag. |
Massive block for me |
Yeah me too firebase does not work due to this |
Still issue in 0.7.1 - @Jarred-Sumner will this be in the 1.0 release? |
Based on the changes I see it plan to fix the got issue too right? |
This one also seems to be blocking use of Bun with FaunaDB JS SDK. I have a POC script that gives this failure:
|
Also seems to block usage of all the firebase admin packages: firebase/firebase-admin-node#2300 |
Looks like the initial http2 branch just got merged 🎉 #6761 I guess it'll drop in |
well, partially drop. it doesn't look ready for action if you read the PR's description. i know it won't include enough support for my use case (unfortunately) |
Great to see http2 finally land. Was excited to try it but faced the following error NotImplementedError: node:http2 createServer is not yet implemented in Bun. Track the status & thumbs up the issue: https://github.com/oven-sh/bun/issues/887 |
It's client only for now @DebkanchanSamadder. Very much looking forward to the server! |
Am I correct in understanding that with https://bun.sh/blog/bun-v1.0.13#http2-client-support that only the client side is implemented at this time. I see that TLS on the server side is implemented and available under https://bun.sh/docs/api/http#tls but is it that there is no HTTP/2 support at all (natively) in Bun? |
@marc-barry , yes, the http2.createServer and http2.createSecureServer aren't implemented yet, so only client for now |
This prevents running vite with Bun in development when server.https is used. Looking forward for this support. |
beware: you won't be able to write a gRPC server with bun until this get resolved |
Is there any ETA for the server part? |
Man I wish this was more clear in the release notes. I was super excited to implement my gRPC server in bun, but when I run my |
@dgrbrady @MarcStdt @deathemperor I've opened a new issue #8823, focused solely on the server side of HTTP2 support. Judging by the release notes, the core team chooses features to implement based on the number of upvotes for an issue. The upvotes on this issue may already be considered "solved." Therefore, I believe we need to upvote the new one to make progress on the matter. |
Thanks @vsly-ru for opening that issue. Our intention was to keep this issue open until we support the HTTP2 server as well, but it's probably a good idea that we use a new issue to get more realistic upvotes. To be clear, we do plan to support the HTTP2 server. If that's something you're depending on, please upvote the issue: #8823 If you only need the HTTP2 client, as of Bun v1.0.13 it is supported. |
Thanks @vsly-ru for making a dedicated ticket for http2 server part: |
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm using Bun v1.1.4, and the issue still persisting. NotImplementedError: node:http2 createSecureServer is not yet implemented in Bun. Track the status & thumbs up the issue: https://github.com/oven-sh/bun/issues/887 How is this issue closed? I see some comments in this artivle claiming that it's working on earlier versions, but how come!? It's been five months now |
@nasriyasoftware this ticket was closed when http2 client was implemented, the title just wasn't updated. The server issue is still open, and the most upvoted open ticket in bun repo at this point. |
@birkskyum thank you ;) |
Version
0.1.5
Platform
Darwin ip-192-168-1-189.us-east-2.compute.internal 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64
What steps will reproduce the bug?
Don't know if this is just a module that hasn't been added yet but I am trying to use the GCP datastore apk and I got
error: Could not resolve: "http2". Maybe you need to "bun install"?
I did bun add http2 and this was resolved but then I get
error: Cannot find module "./framer" from "bun:wrap"
How often does it reproduce? Is there a required condition?
https://github.com/poketrax/pokepull/tree/v1.0.0
bun ./src/pokepull.ts
Or install the gcp datastore apk
bun install @google-cloud/datastore
instantiate a Datastore object.
What is the expected behavior?
Module should resolve.
What do you see instead?
error: Cannot find module "./framer" from "bun:wrap"
Additional information
Let me know if this is something I need to submit to GCP or if I did something stupid
The text was updated successfully, but these errors were encountered: