Error: Making a request with empty `options` is not supported in Nock with dd-trace@5.25.0
Opened this issue · 6 comments
benconnito commented
after upgrading to dd-trace@5.25.0
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"
}
}
benconnito commented
looks like 2e12247e20c0ea303b709b4028d11bb10d5a5ba9
broke it
benconnito commented
benconnito commented
benconnito commented
using DD_TRACE_DISABLED_INSTRUMENTATIONS=url
as a workaround
simon-id commented
Thank you for reporting the bug! We're looking into it now 👍