Comments (4)
I have also encountered this issue when using the bypass
method for a proxied request.
Following the path the request takes, you can see that it bails out here, and never emits the REQUEST
event to add the id to the context later used in the recent change:
/**
* Set response URL if it's not set already.
* @see https://github.com/mswjs/msw/issues/2030
* @see https://developer.mozilla.org/en-US/docs/Web/API/Response/url
*/
if (!response.url) {
Object.defineProperty(response, 'url', {
value: request.url,
enumerable: true,
writable: false,
})
}
from msw.
Related Issues (20)
- TextEncoder is not defined HOT 2
- Use "assertType" from Vitest for type testing HOT 2
- Type error when `graphql.query` infers type arguments from `TypedDocumentNode` HOT 8
- difficuly using axios patch or post call with payload using mock service worker 2.0.11 HOT 2
- feat: support TypeScript 5.3.x for msw 1.3.x HOT 3
- React Native Msw And Axios Not Working Together HOT 21
- difficulty using axios patch or post call with payload using mock service worker HOT 2
- "response.url" is empty in "response:*" life-cycle events in the browser HOT 4
- Two different jest globals fixes documented in two places under https://mswjs.io/docs/
- Add "http" and "graphql" exports HOT 1
- React Native: server.use does not add request handlers HOT 3
- JSON response with special chars truncated since 2.2.0 HOT 3
- Cannot load the application if the browser doesn't have slash at the end of the URL
- MSW does not intercept requests when the node http(s) library is imported using * as HOT 4
- Mocked stream response with multiple enqueues hangs process HOT 6
- Wrong url for mockServiceWorker.js when base config set in Vite 5.x config HOT 2
- Add delay before each request HOT 3
- Mock a request that contains both query and path parameters
- TypeError: confirm is not a function HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msw.