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

Failing with deno #2387

Open
2 tasks done
kesavkolla opened this issue Oct 28, 2024 · 1 comment
Open
2 tasks done

Failing with deno #2387

kesavkolla opened this issue Oct 28, 2024 · 1 comment

Comments

@kesavkolla
Copy link

Describe the bug

  • Deno version: deno 2.0.3 (stable, release, x86_64-unknown-linux-gnu)
  • OS & version: Linux

Actual behavior

Uncaught RequestError: The "listener" argument must be of type function. Received an instance of Object
at Request._beforeError (file:///home/kesav/.cache/deno/npm/registry.npmjs.org/got/14.4.3/dist/source/core/index.js:183:21)
at Request.flush (file:///home/kesav/.cache/deno/npm/registry.npmjs.org/got/14.4.3/dist/source/core/index.js:172:18)
at _node_internal (ext:deno_node/internal/validators.mjs:283:13)
at checkListener (ext:deno_node/_events.mjs:116:3)
at HttpsClientRequest.once (ext:deno_node/_events.mjs:537:3)
at new ClientRequest (node:http:172:12)
at new HttpsClientRequest (node:https:73:79)
at request (node:https:123:10)
at Request._makeRequest (file:///home/kesav/.cache/deno/npm/registry.npmjs.org/got/14.4.3/dist/source/core/index.js:838:37)
at Request.flush (file:///home/kesav/.cache/deno/npm/registry.npmjs.org/got/14.4.3/dist/source/core/index.js:158:24)
at eventLoopTick (ext:core/01_core.js:175:7)
...

Expected behavior

The text from the request
...

Code to reproduce

import {got} from 'npm:got';
await got.get('https://www.google.com').text()
...

Checklist

  • I have read the documentation.
  • I have tried my code with the latest version of Node.js and Got.
@katsanva
Copy link
Contributor

katsanva commented Nov 2, 2024

Not reproducible on [email protected] and [email protected], maybe related to denoland/deno#26264. Please update on your side.

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