question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failure when running in CI (TypeError: The "options.agent" property must be one of Agent-like Object, undefined, or false)

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
kettanaitocommented, Jun 16, 2021

@jonkoops, sure. I’ll make a release in the upcoming day or two. Thank you for your patience.

0reactions
jonkoopscommented, Jun 16, 2021

@kettanaito could we get a release of msw with a bumped version of @mswjs/interceptors to resolve this issue?

Read more comments on GitHub >

github_iconTop 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 >
Developers - Failure when running in CI -
Failure when running in CI.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found