You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use dns and retry with pre-built interceptors, I get no response.
If I keep the process alive as I did when using express, I get the error below.
The error below does not always occur immediately.
They occur after a period of time after multiple requests without receiving a response.
uncaughtException: TypeError: this[#handler].onError is not a function
at DNSDispatchHandler.onError (webpack-internal:///(rsc)/../../node_modules/.pnpm/undici@7.0.0/node_modules/undici/lib/interceptor/dns.js:267:23)
at Request.onError (webpack-internal:///(rsc)/../../node_modules/.pnpm/undici@7.0.0/node_modules/undici/lib/core/request.js:301:27)
at Object.errorRequest (webpack-internal:///(rsc)/../../node_modules/.pnpm/undici@7.0.0/node_modules/undici/lib/core/util.js:828:13)
at Socket.onHttpSocketClose (webpack-internal:///(rsc)/../../node_modules/.pnpm/undici@7.0.0/node_modules/undici/lib/dispatcher/client-h1.js:939:10)
at Socket.emit (node:events:530:35)
at TCP.<anonymous> (node:net:337:12)
at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
Exception origin: uncaughtException
⨯ ../../node_modules/.pnpm/undici@7.0.0/node_modules/undici/lib/interceptor/dns.js (267:1) @ DNSDispatchHandler.onError
⨯ uncaughtException: [TypeError: this[#handler].onError is not a function]
265 | // eslint-disable-next-line no-fallthrough
266 | default:
> 267 | this.#handler.onError(err)
| ^
268 | break
269 | }
270 | }
Environment
MacOS Sequoia 15.0
Node.js v 20.17.0
Node.js v 22.11.0
7.0.0-alpha.6 ~ 7.0.0-alpha.8 → Works fine
7.0.0-alpha.9 and later (include stable v7) → Doesn't work. No output to console.log
The text was updated successfully, but these errors were encountered:
Bug Description
When I use dns and retry with pre-built interceptors, I get no response.
If I keep the process alive as I did when using express, I get the error below.
Reproducible By
Expected Behavior
A response to the request should occur and console.log should be printed.
Logs & Screenshots
The error below does not always occur immediately.
They occur after a period of time after multiple requests without receiving a response.
Environment
MacOS Sequoia 15.0
Node.js v 20.17.0
Node.js v 22.11.0
7.0.0-alpha.6 ~ 7.0.0-alpha.8 → Works fine
7.0.0-alpha.9 and later (include stable v7) → Doesn't work. No output to console.log
The text was updated successfully, but these errors were encountered: