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
Context
Repo: https://github.com/sindresorhus/got
This is an HTTP request library for Node.js that it seems to be incompatible with bun, it works using Node.
Possible issue
Maybe Bun is not supporting all the features this lib is using, last time I checked this packages uses brotli compression and was also returning an error
How to reproduce
// got.ts
import got from "got";
async function execute() {
const response = await got(
"https://api.github.com/repos/sindresorhus/got/issues?state=open"
).json();
console.log(response);
}
execute();
Using bun run ./got.ts returns the following error:
215 | Object.assign(this.options.headers, source.headers);
216 | }
217 | });
218 | this.on('newListener', event => {
219 | if (event === 'retry' && this.listenerCount('retry') > 0) {
220 | throw new Error('A retry listener has been attached already.');
^
error: A retry listener has been attached already.
Context
Repo: https://github.com/sindresorhus/got
This is an HTTP request library for Node.js that it seems to be incompatible with bun, it works using Node.
Possible issue
Maybe Bun is not supporting all the features this lib is using, last time I checked this packages uses brotli compression and was also returning an error
How to reproduce
// got.ts
Using
bun run ./got.ts
returns the following error:Originally reported on Discord:
Support Got HTTP library
The text was updated successfully, but these errors were encountered: