-
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
the Got library not work with Bun #3150
Comments
I don’t think it’ll fix this particular issue but small chance it will Can you try upgrading to v0.6.6? |
v0.6.6 still showing the same error |
same issue same "got" bun version: 0.6.7
|
It seems the above issue is fixed in canary build
The above error still occurs as of v0.8.0 |
I'm also experiencing this issue with bun version Here's my minimal reproducer: import got from "got";
await got('https://bun.sh/'); My stack trace is identical to what Full Stack Trace
Actually, I'm not sure if my statement above is accurate. |
Hi, version 1.0.2 shows still the same error, any info on when PR could be merged? |
the pr has failing tests unfortunatly |
Hey @paperdave I just updated Bun and this is still happening #6427, do you know if this will be picked up soon? I also tried with the latest version |
Just ran into this one today while experimenting with Bun in an existing codebase ( Thank you guys for all the hard work so far. ❤️ |
it is very close but there are some https / compression issues with got after the pr. i've been prioritizing windows mostly and havent had time to finish that pr. |
I see a different error, but nevertheless Got doesn't work with Bun.
The code I ran is same as minimal repro in comments above.
|
can confirm still issue as of bun 1.0.25 and got 14.0.0 |
The same issue still in bun 1.1.0 |
The issue is still here in the latest 1.1.4 |
Yes, |
I experience the same error with [0-0] 89 | Object.assign(this.options.headers, source.headers);
[0-0] 90 | }
[0-0] 91 | });
[0-0] 92 | this.on('newListener', event => {
[0-0] 93 | if (event === 'retry' && this.listenerCount('retry') > 0) {
[0-0] 94 | throw new Error('A retry listener has been attached already.');
[0-0] ^
[0-0] error: A retry listener has been attached already.
[0-0] at /Users/timarzoltan/dev/dc-automation-wdio/node_modules/got/dist/source/core/index.js:94:23
[0-0] at makeRequest (/Users/timarzoltan/dev/dc-automation-wdio/node_modules/got/dist/source/as-promise/index.js:113:13)
[0-0] at /Users/timarzoltan/dev/dc-automation-wdio/node_modules/got/dist/source/as-promise/index.js:131:9
[0-0] at /Users/timarzoltan/dev/dc-automation-wdio/node_modules/p-cancelable/index.js:68:4
[0-0] at new Promise (:1:21)
[0-0] at new PCancelable (/Users/timarzoltan/dev/dc-automation-wdio/node_modules/p-cancelable/index.js:34:19)
[0-0] at asPromise (/Users/timarzoltan/dev/dc-automation-wdio/node_modules/got/dist/source/as-promise/index.js:21:21)
[0-0] at lastHandler (/Users/timarzoltan/dev/dc-automation-wdio/node_modules/got/dist/source/create.js:42:27)
[0-0] at iterateHandlers (/Users/timarzoltan/dev/dc-automation-wdio/node_modules/got/dist/source/create.js:49:19)
[0-0] at /Users/timarzoltan/dev/dc-automation-wdio/node_modules/webdriver/build/request/node.js:17:27
[0-0] at _libRequest (/Users/timarzoltan/dev/dc-automation-wdio/node_modules/webdriver/build/request/node.js:15:23)
[0-0] at /Users/timarzoltan/dev/dc-automation-wdio/node_modules/webdriver/build/request/index.js:147:30
[0-0] at _request (/Users/timarzoltan/dev/dc-automation-wdio/node_modules/webdriver/build/request/index.js:140:20) |
I'm seeing the following error using bun version
|
@palmamartin I saw this error on the not last version of got, too. |
Yes, got package still doesn't work in |
It seems the issue is fixed in 1.1.9 during #11082 ? |
Yes, |
Confirm. Also works. Not production tested, but at least works on simple requests |
Hm...seems like it has some problems with https websites.
Hangs forever. Timeout, error catching, anything does not work at all. Tested on 1.1.10 |
looks like this appears to be working now :) if any other issues are discovered feel free to open a new issue, but for now we'll close this one. you may need to run |
What version of Bun is running?
0.6.5
What platform is your computer?
Darwin 22.1.0 arm64 arm
What steps can reproduce the bug?
import got from 'got';
let response = await got('https://bun.sh/');
console.log(response.statusCode);
What is the expected behavior?
200
What do you see instead?
7 | const ClientRequest = require('./client-request.js');
8 | const IncomingMessage = require('./incoming-message.js');
9 | const auto = require('./auto.js');
10 | const {
11 | HttpOverHttp2,
12 | HttpsOverHttp2
^
TypeError: undefined is not an object (evaluating 'new tls.TLSSocket(new stream.PassThrough)._handle._parentWrap')
Additional information
No response
The text was updated successfully, but these errors were encountered: