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

Error: Making a request with empty options is not supported in Nock with [email protected] #4896

Open
benconnito opened this issue Nov 15, 2024 · 0 comments

Comments

@benconnito
Copy link

benconnito commented Nov 15, 2024

after upgrading to [email protected] i am getting:

"Error: Making a request with empty options is not supported in Nock"

import 'dd-trace'
import nock from 'nock'
import got from 'got'

nock('https://fake.fake/').get('/').reply(200, {valid: true})
console.log(await got.get('https://fake.fake/').json())

works with this package.json

{
  "type": "module",
  "dependencies": {
    "dd-trace": "5.24.0",
    "got": "^14.4.4",
    "nock": "^13.5.6"
  }
}

but not

{
  "type": "module",
  "dependencies": {
    "dd-trace": "5.25.0",
    "got": "^14.4.4",
    "nock": "^13.5.6"
  }
}
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

1 participant