Open sethgw opened 1 year ago
0.7.2
Darwin 22.6.0 arm64 arm
this works:
DEEPGRAM_API_KEY=123 node dg.js
this doesn't work:
DEEPGRAM_API_KEY=123 bun dg.js
dg.js
import pkg from '@deepgram/sdk'; const { Deepgram } = pkg; const client = new Deepgram(process.env.DEEPGRAM_API_KEY); const deepgram = client.transcription.live({ language: 'en', punctuate: true, smart_format: true, model: 'nova', }); setTimeout(() => { if (deepgram.getReadyState() === 1 /* OPEN */) { console.log("socket: data sent to deepgram") // bun never gets here - error: Unexpected server response: 400 // node gets here } }, 1500);
> DEEPGRAM_API_KEY=123 bun dg.js > socket: data sent to deepgram
> DEEPGRAM_API_KEY=123 bun dg.js > error: Unexpected server response: 400
sorry, I don't have time ATM to look deeper into this and find the full call stack.
Bump!
What version of Bun is running?
0.7.2
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
this works:
DEEPGRAM_API_KEY=123 node dg.js
this doesn't work:
DEEPGRAM_API_KEY=123 bun dg.js
dg.js
What is the expected behavior?
What do you see instead?
Additional information
sorry, I don't have time ATM to look deeper into this and find the full call stack.