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

Attempted to assign to readonly property on axios packages #16264

Closed
Pckool opened this issue Jan 8, 2025 · 1 comment
Closed

Attempted to assign to readonly property on axios packages #16264

Pckool opened this issue Jan 8, 2025 · 1 comment
Labels
bug Something isn't working needs triage

Comments

@Pckool
Copy link

Pckool commented Jan 8, 2025

What version of Bun is running?

1.1.43+76800b049

What platform is your computer?

Darwin 24.3.0 arm64 arm

What steps can reproduce the bug?

Use a package that uses axios (we're using seam and that seems to throw the error)
The error happens during runtime when you use seem's api client. It also seems to happen for us when using axios directly

What is the expected behavior?

for packages like seam, axios, atatus, twilio and others to work properly

What do you see instead?

TypeError: Attempted to assign to readonly property.

Additional information

here's a stacktrace that might help diagnose the issue:

at getUrlFromRequestAndOptions (/app/node_modules/atatus-nodejs/lib/instrumentation/http-shared.js:620:3)
    at wrappedHttpRequest (/app/node_modules/atatus-nodejs/lib/instrumentation/http-shared.js:523:19)
    at wrappedMethod (/app/node_modules/@sentry/node/cjs/integrations/http.js:265:10)
    at <anonymous> (/app/node_modules/follow-redirects/index.js:337:20)
    at new RedirectableRequest (/app/node_modules/follow-redirects/index.js:111:8)
    at request (/app/node_modules/follow-redirects/index.js:543:18)
    at <anonymous> (/app/node_modules/axios/lib/adapters/http.js:464:21)
    at dispatchHttpRequest (/app/node_modules/axios/lib/adapters/http.js:170:55)
    at <anonymous> (/app/node_modules/axios/lib/adapters/http.js:152:5)
    at new Promise (native)
    at wrapAsync (/app/node_modules/axios/lib/adapters/http.js:132:14)
    at dispatchRequest (/app/node_modules/axios/lib/core/dispatchRequest.js:49:73)
    at processTicksAndRejections (native:7:39)
    at <anonymous> (/app/node_modules/axios/lib/core/Axios.js:45:41)
@Pckool Pckool added bug Something isn't working needs triage labels Jan 8, 2025
@Pckool
Copy link
Author

Pckool commented Jan 9, 2025

Seems like this occurs here when atatus tries to modify the agent prop of a request object:
Image

Jarred-Sumner added a commit that referenced this issue Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant