Coder Social home page Coder Social logo

Comments (18)

Klaitos avatar Klaitos commented on June 12, 2024 8

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.

tlhunter avatar tlhunter commented on June 12, 2024 4

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.

oachoor avatar oachoor commented on June 12, 2024 2

can confirm as well (nestjs), downgrading to v5.10.0 for now

from dd-trace-js.

juancarlosjr97 avatar juancarlosjr97 commented on June 12, 2024 2

Nice! Looks like it is working :)

from dd-trace-js.

yjukaku avatar yjukaku commented on June 12, 2024 1

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.

cannontrodder avatar cannontrodder commented on June 12, 2024 1

Looks like this commit is designed to fix it: 0f36e48

from dd-trace-js.

cannontrodder avatar cannontrodder commented on June 12, 2024

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.

radum avatar radum commented on June 12, 2024

@yjukaku That is very interesting, have you found an workaround for it?

from dd-trace-js.

yjukaku avatar yjukaku commented on June 12, 2024

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.

StephaneBischoffVasco avatar StephaneBischoffVasco commented on June 12, 2024

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.

mdnorman avatar mdnorman commented on June 12, 2024

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.

tbauer428 avatar tbauer428 commented on June 12, 2024

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.

juancarlosjr97 avatar juancarlosjr97 commented on June 12, 2024

Same issue here, and we are pinning to v5.10.0 for now.

from dd-trace-js.

olafurw avatar olafurw commented on June 12, 2024

Seems a fix has existed for a couple of days but hasn't been pushed out yet #4258

from dd-trace-js.

KevinVR avatar KevinVR commented on June 12, 2024

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.

EmiiFont avatar EmiiFont commented on June 12, 2024

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.

rkstamm avatar rkstamm commented on June 12, 2024

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.

anddreluis2 avatar anddreluis2 commented on June 12, 2024

if you remove the connection to apm the app works again

from dd-trace-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.