Failure when running in CI (TypeError: The "options.agent" property must be one of Agent-like Object, undefined, or false)
See original GitHub issueDescribe the bug
After upgrading to 0.28.0 have been getting these errors only in CI while running tests:
TypeError: The "options.agent" property must be one of Agent-like Object, undefined, or false. Received an instance of ObjectTypeError [ERR_INVALID_ARG_TYPE]: The "options.agent" property must be one of Agent-like Object, undefined, or false. Received an instance of Object
at Object.proxiedOriginalRequest (node_modules/@mswjs/interceptors/src/interceptors/ClientRequest/index.ts:72:29)
at ClientRequestOverride.<anonymous> (node_modules/@mswjs/interceptors/src/interceptors/ClientRequest/createClientRequestOverride.ts:296:19)
at step (node_modules/@mswjs/interceptors/lib/interceptors/ClientRequest/createClientRequestOverride.js:33:23)
at Object.next (node_modules/@mswjs/interceptors/lib/interceptors/ClientRequest/createClientRequestOverride.js:14:53)
at fulfilled (node_modules/@mswjs/interceptors/lib/interceptors/ClientRequest/createClientRequestOverride.js:5:58)
Environment
msw: 0.28.0
nodejs: 12.0.0
npm: 6.14.11
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:5 (3 by maintainers)
Top Results From Across the Web
TypeError: Expected the `options.agent` properties to be ` ...
I am trying to set a proxy in my Node.js code. I am using the GOT library of npm to make an API...
Read more >VOLTTRON Documentation
VOLTTRON™ is an open source, scalable, and distributed platform that seamlessly integrates data, devices, and.
Read more >Windows Analysis Report node-v16.13.0-x64.msi
Sample tries to load a library which is not present or installed on the analysis machine, adding the library might reveal more behavior ......
Read more >Node.js Notes for Professionals
Section 1.11: How to get a basic HTTPS web server up and running! ... that you'll have to set into an option object....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jonkoops, sure. I’ll make a release in the upcoming day or two. Thank you for your patience.
@kettanaito could we get a release of
msw
with a bumped version of@mswjs/interceptors
to resolve this issue?