Skip to content
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

Deno compatibility #81

Open
digidubae opened this issue Jul 11, 2023 · 1 comment
Open

Deno compatibility #81

digidubae opened this issue Jul 11, 2023 · 1 comment

Comments

@digidubae
Copy link

Can't use in deno:
error: Uncaught TypeError: socket.setTimeout is not a function
at RedirectableRequest.destroyOnTimeout (file:///Users/aymanalkait/Library/Caches/deno/npm/registry.npmjs.org/follow-redirects/1.15.2/index.js:158:12)
at RedirectableRequest.emit (ext:deno_node/_stream.mjs:1857:11)
at HttpsClientRequest.eventHandlers. (file:///Users/aymanalkait/Library/Caches/deno/npm/registry.npmjs.org/follow-redirects/1.15.2/index.js:14:24)
at HttpsClientRequest.emit (ext:deno_node/_stream.mjs:1857:11)
at node:http:388:18
at processTicksAndRejections (ext:deno_node/_next_tick.ts:25:21)
at runNextTicks (ext:deno_node/_next_tick.ts:71:5)
at eventLoopTick (ext:core/01_core.js:189:21)

I downgraded the package and found out it works only if i downgrade all the way to 1.2.0

However, even with 1.2.0 if the app is idle for sometime it crashes with the following similar exception:
Uncaught TypeError: socket.setTimeout is not a function

@darinspivey
Copy link
Collaborator

Thanks for reporting this. Deno must not be a complete JS runtime, and there will most likely be other issues besides the one cited here. The requirements for this package are for raw JS versions noted in the docs, and that's what we support right now.

I can pass this onto our teams, but it's not likely we will be supporting this in the near future. You could always fork the repo and tinker with getting it to work for your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants