claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Invalid previous_message_id format in conversation context

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

[{"error":"Error: console.error: [bun] Warning: ws.WebSocket 'unexpected-response' event is not implemented in bun\n at K (/$bunfs/root/src/entrypoints/cli.js:541:12128)\n at emitWarning (ws:43:42)\n at #onOrOnce (ws:170:18)\n at lw6 (/$bunfs/root/src/entrypoints/cli.js:7611:4498)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T17:35:36.485Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T17:59:28.339Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T18:16:47.876Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T19:03:42.501Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T19:48:29.989Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T20:10:50.586Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (26156 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at Kg7 (/$bunfs/root/src/entrypoints/cli.js:4855:12970)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T08:28:07.840Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/qmates/dev/experiments/dungeon_master/src/dungeon_master/agents/narrator/phases'\n at GzH (/$bunfs/root/src/entrypoints/cli.js:1561:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T09:05:07.458Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T09:23:15.908Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:02:45.444Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/qmates/dev/experiments/dungeon_master.\n at call (/$bunfs/root/src/entrypoints/cli.js:4863:11360)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:35:41.755Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/qmates/dev/experiments/dungeon_master.\n at call (/$bunfs/root/src/entrypoints/cli.js:4863:11360)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:43:13.211Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (28120 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at Kg7 (/$bunfs/root/src/entrypoints/cli.js:4855:12970)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:51:34.502Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T18:14:47.694Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/qmates/dev/experiments/dungeon_master/src/dungeon_master/domain/mechanics/actions'\n at GzH (/$bunfs/root/src/entrypoints/cli.js:1561:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T19:16:05.521Z"},{"error":"Error: Stream idle timeout - partial response received\n at RXK (/$bunfs/root/src/entrypoints/cli.js:8948:14189)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T19:43:48.027Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/qmates/dev/experiments/dungeon_master.\n at call (/$bunfs/root/src/entrypoints/cli.js:4863:11360)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T21:54:59.152Z"},{"error":"Error: File content has changed since it was last read. This commonly happens when a linter or formatter run via Bash rewrites the file. Call Read on this file to…

Code Example

[{"error":"Error: console.error: [bun] Warning: ws.WebSocket 'unexpected-response' event is not implemented in bun\n    at K (/$bunfs/root/src/entrypoints/cli.js:541:12128)\n    at emitWarning (ws:43:42)\n    at #onOrOnce (ws:170:18)\n    at lw6 (/$bunfs/root/src/entrypoints/cli.js:7611:4498)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T17:35:36.485Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T17:59:28.339Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T18:16:47.876Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T19:03:42.501Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T19:48:29.989Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T20:10:50.586Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (26156 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at Kg7 (/$bunfs/root/src/entrypoints/cli.js:4855:12970)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T08:28:07.840Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/qmates/dev/experiments/dungeon_master/src/dungeon_master/agents/narrator/phases'\n    at GzH (/$bunfs/root/src/entrypoints/cli.js:1561:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T09:05:07.458Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T09:23:15.908Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:02:45.444Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/qmates/dev/experiments/dungeon_master.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4863:11360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:35:41.755Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/qmates/dev/experiments/dungeon_master.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4863:11360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:43:13.211Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (28120 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at Kg7 (/$bunfs/root/src/entrypoints/cli.js:4855:12970)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:51:34.502Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T18:14:47.694Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/qmates/dev/experiments/dungeon_master/src/dungeon_master/domain/mechanics/actions'\n    at GzH (/$bunfs/root/src/entrypoints/cli.js:1561:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T19:16:05.521Z"},{"error":"Error: Stream idle timeout - partial response received\n    at RXK (/$bunfs/root/src/entrypoints/cli.js:8948:14189)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T19:43:48.027Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/qmates/dev/experiments/dungeon_master.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4863:11360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T21:54:59.152Z"},{"error":"Error: File content has changed since it was last read. This commonly happens when a linter or formatter run via Bash rewrites the file. Call Read on this file to…
RAW_BUFFERClick to expand / collapse

Bug Description i receive after login: API Error: 400 diagnostics.previous_message_id: must be the id from a prior /v1/messages response (starts with msg_)

Environment Info

  • Platform: darwin
  • Terminal: pycharm
  • Version: 2.1.129
  • Feedback ID: e47cb44b-c8ed-4514-ad02-e06935a50e29

Errors

[{"error":"Error: console.error: [bun] Warning: ws.WebSocket 'unexpected-response' event is not implemented in bun\n    at K (/$bunfs/root/src/entrypoints/cli.js:541:12128)\n    at emitWarning (ws:43:42)\n    at #onOrOnce (ws:170:18)\n    at lw6 (/$bunfs/root/src/entrypoints/cli.js:7611:4498)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T17:35:36.485Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T17:59:28.339Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T18:16:47.876Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T19:03:42.501Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T19:48:29.989Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-06T20:10:50.586Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (26156 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at Kg7 (/$bunfs/root/src/entrypoints/cli.js:4855:12970)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T08:28:07.840Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/qmates/dev/experiments/dungeon_master/src/dungeon_master/agents/narrator/phases'\n    at GzH (/$bunfs/root/src/entrypoints/cli.js:1561:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T09:05:07.458Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T09:23:15.908Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:02:45.444Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/qmates/dev/experiments/dungeon_master.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4863:11360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:35:41.755Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/qmates/dev/experiments/dungeon_master.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4863:11360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:43:13.211Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (28120 tokens) exceeds maximum allowed tokens (25000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at Kg7 (/$bunfs/root/src/entrypoints/cli.js:4855:12970)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T11:51:34.502Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6192)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T18:14:47.694Z"},{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/qmates/dev/experiments/dungeon_master/src/dungeon_master/domain/mechanics/actions'\n    at GzH (/$bunfs/root/src/entrypoints/cli.js:1561:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T19:16:05.521Z"},{"error":"Error: Stream idle timeout - partial response received\n    at RXK (/$bunfs/root/src/entrypoints/cli.js:8948:14189)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T19:43:48.027Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/qmates/dev/experiments/dungeon_master.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4863:11360)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T21:54:59.152Z"},{"error":"Error: File content has changed since it was last read. This commonly happens when a linter or formatter run via Bash rewrites the file. Call Read on this file to…

Note: Content was truncated.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING