Open nicholasoxford opened 4 months ago
Hey @Jarred-Sumner this is very much production blocking for me.
Happy to DM you environment variables, my username is @ApolloToday on X
Related https://github.com/oven-sh/bun/issues/9914 ??
@inc16sec seems to be the same problem! I might try to figure where in the neo4j library its going wrong
After some debugging, I believe where Node and Bun start behaving differently is the .onMessage
on the function handshake
in the bolt-connection subrepo
Maybe events arent being emitted correctly? cc @Jarred-Sumner
With node, my logs show that channel.write(newHandshakeBuffer())
gets called then channel.onMessage
gets triggered. Which makes sense.
@Jarred-Sumner Any idea what's going on with onMessage??
After some more research, it seems more related to the file node-channel.js https://github.com/neo4j/neo4j-javascript-driver/blob/5.0/packages/bolt-connection/src/channel/node/node-channel.js#L161C20-L161C23, which I see is using the net package I also see that Bun states it doesn't have full compatibility with node net
I am still digging but the hold up is probably related more this node-channel file than specifically that onMessage line, I am still crawling through
After some more research, it seems more related to the file node-channel.js https://github.com/neo4j/neo4j-javascript-driver/blob/5.0/packages/bolt-connection/src/channel/node/node-channel.js#L161C20-L161C23, which I see is using the net package I also see that Bun states it doesn't have full compatibility with node net
I am still digging but the hold up is probably related more this node-channel file than specifically that onMessage line, I am still crawling through
Any update on this? I'm also facing the same issue
What version of Bun is running?
1.1.20+ae1948925
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
neo4j+s
the connection just hangs for 60 seconds.Related issue #neo4j/neo4j-javascript-driver/issues/1207
Script to reproduce, if you need paid connection variables you can dm me on twitter @ApolloToday
Run with node and bun
index.mjs
What is the expected behavior?
Expected output would look something like this
Followed by a low of another logs and console log of the records
What do you see instead?
Additional information
This is production blocking for me!