Comments (18)
Same issue here, lost few hours to land on this issue.
TypeError: Cannot construct a Request with a Request object that has already been used.
at node:internal/deps/undici/undici:12618:11
from dd-trace-js.
A fix for this has been released in v5.12.0, v4.36.0, and v3.57.0 of the library. Please upgrade to confirm that it fixes the issue. If it does not fix the issue please @ me and I'll reopen this issue and we'll investigate further. Thanks!
from dd-trace-js.
can confirm as well (nestjs), downgrading to v5.10.0 for now
from dd-trace-js.
Nice! Looks like it is working :)
from dd-trace-js.
We are also seeing the same issue on 4.x, and Next.js 13.x
fetch
fails with an error when making a POST with a body to our backend. We think it fails only when the server responds with a redirect (ours is using a 307).
from dd-trace-js.
Looks like this commit is designed to fix it: 0f36e48
from dd-trace-js.
We have seen this on the 4.x.x release line, unfortunately we needed this to get a fix related to an out of memory race condition on the auto injection docker image
from dd-trace-js.
@yjukaku That is very interesting, have you found an workaround for it?
from dd-trace-js.
Our workaround, other than downgrading the DD library, was to update the URLs we were fetching to avoid the redirect.
EDIT: It seems the redirects were likely a red herring and it didn't help to update the URLs to avoid the redirect.
from dd-trace-js.
Having this issue with our Docker image
Reverted back to COPY --from=datadog/dd-lib-js-init:v5.10.0 /operator-build/node_modules /dd_tracer/node/
For now.
from dd-trace-js.
We ran into this as well. Even though we're pinning the versions of datadog-lambda-extension and datadog-lambda-js, the Lambda layer was still picking up a newer version of dd-trace that had this problem.
from dd-trace-js.
Ran into this same error with next-auth
using dd-trace in our Dockerfile, we had dd-trace@^5
, which pulled in v5.11.0
.
Downgrading to v5.9.0
immediately alleviated the issue.
from dd-trace-js.
Same issue here, and we are pinning to v5.10.0 for now.
from dd-trace-js.
Seems a fix has existed for a couple of days but hasn't been pushed out yet #4258
from dd-trace-js.
Can confirm - issue on 5.11.0, while 5.10.0 works fine.
We need PR #4258 also for v5, not only pre-v6.
from dd-trace-js.
Ran into this same error with auth0 node sdk package using dd-trace
Downgrading to v5.10.0 fixed the issue.
from dd-trace-js.
Same here. Caused our next.js server side fetches to fail all over. Storing a local copy of the wrapper using specific versioning to 5.10, and from now on. Thanks @radum for finding this. We spent hours trying to figure out why this suddenly happened.
from dd-trace-js.
if you remove the connection to apm the app works again
from dd-trace-js.
Related Issues (20)
- Unhandled rejection thrown with Mongodb 6.4.0 HOT 1
- Add tags to the Service Entry Span in Middleware HOT 1
- How to trace jest with custom environment HOT 1
- Code that outputs neverthrow ResultAsync promise-like objects cannot be traced or wrapped
- Dogstatsd is undefined during jest tests HOT 7
- Added histogram method to dogstatsd
- Difficulties adding TAGS to test executions in CI Test Visibility HOT 6
- How to trace full request from service A to service B via TCP transport in NEST JS?
- Continuous profiling not working with NextJS instrumentation HOT 3
- `child_process` missing from plugin types in TS headers
- `child_process` plugin picks up shell commands not triggered by the traced process
- Error with ESM support when using the `openai` package
- Missing decrement function in NoopDogStatsDClient
- Memory Leak in dd-trace http plugin HOT 3
- getSpanLImits method missing in Tracer class
- Bug with selenium instrumentation HOT 3
- dogstatsd sending metrics over http when udp supported HOT 1
- all non-0 gRPC status codes being treated as errors
- Open Telemetry Integration Does not Adhere to Specification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dd-trace-js.