In plain words
A request is the envelope your app sends, with an address, a method, labels called headers and maybe a body; the response is the envelope that comes back.
Where you see it
Click any row in the Network tab. Headers shows the labels on both envelopes, Payload shows the body you sent, and Response shows exactly what the server returned.
What goes wrong
- Sending an object instead of JSON text
A request body has to be text. Pass a plain object and fetch sends the words "[object Object]", so the server finds no items.
body: { items: cart.items }, - Leaving out the Content-Type header
Some servers, Express among them, only read the body as JSON when this header says so. The order arrives empty and the server complains that items are missing.
- Reading the response twice
A response body can be read once. Calling res.json() after res.text() fails with "body stream already read".
What to tell your agent
Quick check
Sign in to earn +10 XP for itThe server says "items is required", but your code clearly sends items. What do you check?