Paste a console error someone can act on

AI-assisted article. Reviewed by Codebuff automated editorial review on 2026-11-13. Examples are illustrative, not real user data.
A console error is three artefacts pretending to be one: a message, a stack and whatever request or state produced it. People paste the first line because it is red and short, and the reader has to ask for the rest. Sending all three at once, in a fixed order, turns a round trip into an answer, and removing the framework internals keeps it short enough that someone will read it.
Why is the message alone rarely the problem?
Messages are generic on purpose: `Cannot read properties of undefined` is produced by thousands of different bugs. What distinguishes them is where the code was when it happened and what it was holding, so the stack and one line of context do more work than any amount of description.
Add the browser and the build. A bug that reproduces in one version and not another is often a compatibility issue, and the deployed bundle hash tells the reader whether they are looking at the same code you are.
Keep the frames that name your code
A stack from a bundled frontend is mostly framework frames. Keep the first few, the ones from your source files, and any frame that appears in the stack twice. Drop the vendor chunk unless the top frame is inside it, which is exactly when the reader needs it.
If the bundle is minified and you have source maps, run the error through them first. A frame pointing at `app.4f2c.js:1:88213` is not actionable; the same frame with the original file and line is. Then paste the mapped stack and say that it was mapped, so nobody reproduces against the wrong build.
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'id')
at Viewer (viewer.9c31.js:1:4821)
at renderWithHooks (react-dom.production.min.js:1:12837)
at updateFunctionComponent (react-dom.production.min.js:1:47411)
... 14 framework frames removed ...
Chrome 141 · macOS 26 · build 5f8c2a1 · request GET /api/pastes/abc -> 404
Include the request and the state that led to it
The failing request deserves its own line: method, path, status and the response body if it is small. A 200 with an empty array and a 404 are different bugs, and the message does not tell them apart. Strip cookies, bearer tokens and query strings that carry a key before you paste it.
If the error only appears after a sequence of actions, list that sequence in numbered steps. Three steps that reliably reproduce are worth more than a paragraph of speculation about caching.
Separate what you saw from what you guessed
State the observation and the hypothesis in separate sentences. The observation is checkable: the exact message, the number of requests in the network panel, the status code. The hypothesis is not, and mixing them makes the reader test your guess instead of the bug.
If you already tried something, say what it changed. A note that clearing local storage makes the error disappear is a strong clue, and it is invisible in the stack.
Sources and editorial review
Prepared with AI assistance and checked against the log and plain-text sharing pages at the reviewed revision: the message-stack-context split, source-map advice, request detail line and the observed-versus-guessed rule. Browser and build values in the example are illustrative, and the pasted path carries no identifier.