Skip to content

(v.0.42) Error - Invariant Violation: Failed to respond request: the "request" event has already been responded to  #1271

@7iomka

Description

@7iomka

Prerequisites

Environment check

  • I'm using the latest msw version
  • I'm using Node.js version 14 or higher

Node.js version

v16.15.0

Reproduction repository

https://github.com/7iomka/next-with-msw-and-effector

Reproduction steps

yarn add msw@latest
yarn dev

Current behavior

error - Invariant Violation: Failed to respond to "GET http://localhost:3000/backend-api/xxxx" request: the "request" event has already been responded to.
    at setupServerListener (************/node_modules/msw/lib/node/index.js:1249:17) {

Expected behavior

All works as in v0.38.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds:triageIssues that have not been investigated yet.scope:nodeRelated to MSW running in Node

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions