-
Notifications
You must be signed in to change notification settings - Fork 120
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
fix: fix socket info in fetch response #555
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { | ||
Agent, | ||
Dispatcher, | ||
} from 'undici'; | ||
import { AsyncLocalStorage } from 'node:async_hooks'; | ||
import { FetchOpaque } from './FetchOpaqueInterceptor.js'; | ||
|
||
export interface BaseAgentOptions extends Agent.Options { | ||
opaqueLocalStorage: AsyncLocalStorage<FetchOpaque>; | ||
} | ||
|
||
export class BaseAgent extends Agent { | ||
#opaqueLocalStorage: AsyncLocalStorage<FetchOpaque>; | ||
|
||
constructor(options: BaseAgentOptions) { | ||
super(options); | ||
this.#opaqueLocalStorage = options.opaqueLocalStorage; | ||
} | ||
|
||
dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean { | ||
const opaque = this.#opaqueLocalStorage.getStore(); | ||
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (ubuntu-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 18.19.0)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 20)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 23)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (macos-latest, 18)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
Check failure on line 21 in src/BaseAgent.ts GitHub Actions / Node.js / Test (windows-latest, 22)test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
|
||
(handler as any).opaque = opaque; | ||
return super.dispatch(options, handler); | ||
} | ||
} | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ | |
assert(requestDiagnosticsMessage!.request); | ||
assert(responseDiagnosticsMessage!.request); | ||
assert(responseDiagnosticsMessage!.response); | ||
assert.equal(responseDiagnosticsMessage!.response.socket.localAddress, '127.0.0.1'); | ||
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (ubuntu-latest, 20)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (ubuntu-latest, 23)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (ubuntu-latest, 22)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (macos-latest, 22)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (ubuntu-latest, 18)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (ubuntu-latest, 18.19.0)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (macos-latest, 20)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (macos-latest, 23)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (macos-latest, 18.19.0)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (windows-latest, 18.19.0)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (windows-latest, 18)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (windows-latest, 20)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (windows-latest, 23)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (macos-latest, 18)test/fetch.test.ts > fetch.test.ts > fetch should work
Check failure on line 49 in test/fetch.test.ts GitHub Actions / Node.js / Test (windows-latest, 22)test/fetch.test.ts > fetch.test.ts > fetch should work
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix Test Assertion to Support IPv6 Loopback Address The test is failing because the Apply this diff to update the assertion: assert.equal(responseDiagnosticsMessage!.response.socket.localAddress, '127.0.0.1');
+ assert(['127.0.0.1', '::1'].includes(responseDiagnosticsMessage!.response.socket.localAddress)); Alternatively, use a regular expression to match any loopback address: + assert(/^(127\.0\.0\.1|::1)$/.test(responseDiagnosticsMessage!.response.socket.localAddress)); This adjustment ensures the test passes regardless of whether the environment uses IPv4 or IPv6 for loopback addresses.
🧰 Tools🪛 GitHub Check: Node.js / Test (ubuntu-latest, 23)[failure] 49-49: test/fetch.test.ts > fetch.test.ts > fetch should work '::1' !== '127.0.0.1' Expected: "127.0.0.1" ❯ test/fetch.test.ts:49:12 🪛 GitHub Check: Node.js / Test (ubuntu-latest, 22)[failure] 49-49: test/fetch.test.ts > fetch.test.ts > fetch should work
Expected: "127.0.0.1" ❯ test/fetch.test.ts:49:12 🪛 GitHub Check: Node.js / Test (ubuntu-latest, 20)[failure] 49-49: test/fetch.test.ts > fetch.test.ts > fetch should work
Expected: "127.0.0.1" ❯ test/fetch.test.ts:49:12 🪛 GitHub Check: Node.js / Test (macos-latest, 22)[failure] 49-49: test/fetch.test.ts > fetch.test.ts > fetch should work
Expected: "127.0.0.1" ❯ test/fetch.test.ts:49:12 |
||
|
||
assert(fetchDiagnosticsMessage!.fetch); | ||
assert(fetchResponseDiagnosticsMessage!.fetch); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical Issue: Handle Undefined
opaqueLocalStorage
If
opaqueLocalStorage
is not provided inoptions
, accessingthis.#opaqueLocalStorage.getStore()
will result in aTypeError
. To prevent this, you should provide a default value or handle the case whereopaqueLocalStorage
isundefined
.Apply this diff to provide a default value for
opaqueLocalStorage
:This modification ensures that
opaqueLocalStorage
has a default value and gracefully handles cases where it's not provided.📝 Committable suggestion
🧰 Tools
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 23)
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:255:39
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.234, keepAliveSocket: true, requestUrls: [ 'http://localhost:37319/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:279:39
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.114, keepAliveSocket: true, requestUrls: [ 'https://registry.npmmirror.com/urllib' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:382:41
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.139, keepAliveSocket: true, requestUrls: [ 'http://127.0.0.1:37319/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:472:41
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.105, keepAliveSocket: true, requestUrls: [ 'http://check-host-ssrf.com:37319/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 22)
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:255:39
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.251, keepAliveSocket: true, requestUrls: [ 'http://localhost:40029/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:279:39
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.099, keepAliveSocket: true, requestUrls: [ 'https://registry.npmmirror.com/urllib' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:382:41
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.077, keepAliveSocket: true, requestUrls: [ 'http://127.0.0.1:40029/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:472:41
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.133, keepAliveSocket: true, requestUrls: [ 'http://check-host-ssrf.com:40029/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
🪛 GitHub Check: Node.js / Test (ubuntu-latest, 20)
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:255:39
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.287, keepAliveSocket: true, requestUrls: [ 'http://localhost:46867/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:279:39
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.135, keepAliveSocket: true, requestUrls: [ 'https://registry.npmmirror.com/urllib' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:382:41
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.166, keepAliveSocket: true, requestUrls: [ 'http://127.0.0.1:46867/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:472:41
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.133, keepAliveSocket: true, requestUrls: [ 'http://check-host-ssrf.com:46867/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
🪛 GitHub Check: Node.js / Test (macos-latest, 22)
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTP protol
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:255:39
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.185, keepAliveSocket: true, requestUrls: [ 'http://localhost:49196/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.lookup > should work with custom lookup on HTTPS protol
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:279:39
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.072, keepAliveSocket: true, requestUrls: [ 'https://registry.npmmirror.com/urllib' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should check ip hostname
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:382:41
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.035, keepAliveSocket: true, requestUrls: [ 'http://127.0.0.1:49196/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }
[failure] 21-21: test/HttpClient.test.ts > HttpClient.test.ts > clientOptions.checkAddress > should allow hostname check
TypeError: Cannot read properties of undefined (reading 'getStore')
❯ HttpAgent.dispatch src/BaseAgent.ts:21:45
❯ HttpAgent.dispatch src/HttpAgent.ts:90:18
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:188:10
❯ node_modules/undici/lib/api/api-request.js:179:15
❯ HttpAgent.request node_modules/undici/lib/api/api-request.js:178:12
❯ Proxy. node_modules/undici/index.js:109:15
❯ HttpClient.#requestInternal src/HttpClient.ts:581:28
❯ HttpClient.request src/HttpClient.ts:245:23
❯ test/HttpClient.test.ts:472:41
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { opaque: undefined, status: -1, headers: {}, res: { status: -1, statusCode: -1, statusText: '', statusMessage: '', headers: {}, size: +0, aborted: false, rt: 0.053, keepAliveSocket: true, requestUrls: [ 'http://check-host-ssrf.com:49196/' ], timing: { queuing: +0, connected: +0, requestHeadersSent: +0, requestSent: +0, waiting: +0, contentDownload: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 }, retries: +0, socketErrorRetries: +0 }, socket: { id: +0, localAddress: '', localPort: +0, remoteAddress: '', remotePort: +0, remoteFamily: '', bytesWritten: +0, bytesRead: +0, handledRequests: +0, handledResponses: +0 } }