claude-code - 💡(How to fix) Fix [Bug] Memory write returns corrupted/garbled output [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#46142Fetched 2026-04-11 06:27:58
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/michal/workspace/global-vision-reports/pdf-worker'\n at W4H (/$bunfs/root/src/entrypoints/cli.js:3866:15358)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T08:11:30.694Z"},{"error":"Error: 1P event logging: 40 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:422:2574)\n at async doExport (/$bunfs/root/src/entrypoints/cli.js:422:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T09:17:19.219Z"},{"error":"Error: {"message":"Failed to export 40 events (code=ECONNABORTED, timeout of 10000ms exceeded)","originalLine":"422","originalColumn":"1668","line":"422","column":"1668","sourceURL":"/$bunfs/root/src/entrypoints/cli.js","stack":"Error: Failed to export 40 events (code=ECONNABORTED, timeout of 10000ms exceeded)\n at doExport (/$bunfs/root/src/entrypoints/cli.js:422:1668)\n at processTicksAndRejections (native:7:39)","name":"Error"}\n at error (/$bunfs/root/src/entrypoints/cli.js:2711:38214)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:417:36794)\n at UG4 (/$bunfs/root/src/entrypoints/cli.js:417:37338)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:418:19103)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T09:17:19.219Z"},{"error":"AxiosError: Request failed with status code 404\n at ig (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T15:44:25.067Z"},{"error":"AxiosError: Request failed with status code 404\n at ig (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T16:41:03.078Z"},{"error":"Error: Request was aborted.\n at PV_ (/$bunfs/root/src/entrypoints/cli.js:1245:11933)\n at next (native:1:11)\n at Kb7 (/$bunfs/root/src/entrypoints/cli.js:7767:9194)\n at next (native:1:11)\n at Tb7 (/$bunfs/root/src/entrypoints/cli.js:7772:11371)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T08:24:45.455Z"},{"error":"Error: Request was aborted.\n at PV_ (/$bunfs/root/src/entrypoints/cli.js:1245:11933)\n at next (native:1:11)\n at Kb7 (/$bunfs/root/src/entrypoints/cli.js:7767:9194)\n at next (native:1:11)\n at Tb7 (/$bunfs/root/src/entrypoints/cli.js:7772:11371)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T08:59:12.489Z"}]

Code Example

[{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/michal/workspace/global-vision-reports/pdf-worker'\n    at W4H (/$bunfs/root/src/entrypoints/cli.js:3866:15358)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T08:11:30.694Z"},{"error":"Error: 1P event logging: 40 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:422:2574)\n    at async doExport (/$bunfs/root/src/entrypoints/cli.js:422:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T09:17:19.219Z"},{"error":"Error: {\"message\":\"Failed to export 40 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"422\",\"originalColumn\":\"1668\",\"line\":\"422\",\"column\":\"1668\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 40 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n    at doExport (/$bunfs/root/src/entrypoints/cli.js:422:1668)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/src/entrypoints/cli.js:2711:38214)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:417:36794)\n    at UG4 (/$bunfs/root/src/entrypoints/cli.js:417:37338)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:418:19103)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T09:17:19.219Z"},{"error":"AxiosError: Request failed with status code 404\n    at ig (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T15:44:25.067Z"},{"error":"AxiosError: Request failed with status code 404\n    at ig (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T16:41:03.078Z"},{"error":"Error: Request was aborted.\n    at PV_ (/$bunfs/root/src/entrypoints/cli.js:1245:11933)\n    at next (native:1:11)\n    at Kb7 (/$bunfs/root/src/entrypoints/cli.js:7767:9194)\n    at next (native:1:11)\n    at Tb7 (/$bunfs/root/src/entrypoints/cli.js:7772:11371)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T08:24:45.455Z"},{"error":"Error: Request was aborted.\n    at PV_ (/$bunfs/root/src/entrypoints/cli.js:1245:11933)\n    at next (native:1:11)\n    at Kb7 (/$bunfs/root/src/entrypoints/cli.js:7767:9194)\n    at next (native:1:11)\n    at Tb7 (/$bunfs/root/src/entrypoints/cli.js:7772:11371)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T08:59:12.489Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description claude seems to glitch when writing to memory: ⏺ Good to know — saving that so I don't raise the flag again.

Wrote 1 memory (ctrl+o to expand)

⏺ <amor;

5,55, Ths, , 35, , ns. Ch55(4;6, 4, x, ask, .

X658, Nations ( , ences ( , t25 , 6

( , Ch,. , 6, 5, Ch, 4,ask, 5,5, , ,5.6, ( ,5 (,8, 5,5, ,5,

5,5, 5,5, 5, 5, ,5, 6, 5, Ch6,5,5, 4,5,5,5,5, 5, 6,5,5,5, 5, 5,5, 5,5, Ch, 5, ,5, 5, 5 ,5, 5, 5,5, 5,5, 5, 5, 5, 5, 5,5,5,5,5, 5, ,5, 5, 5, 5, 5, 5, 5, ,5,5,5, 5, 5, 5, 5, 5, 5,5,5,5, 5, 5, 5, 5,5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.97
  • Feedback ID: dbda7eca-19b1-43bd-bc9a-18c7924423fa

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/michal/workspace/global-vision-reports/pdf-worker'\n    at W4H (/$bunfs/root/src/entrypoints/cli.js:3866:15358)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T08:11:30.694Z"},{"error":"Error: 1P event logging: 40 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:422:2574)\n    at async doExport (/$bunfs/root/src/entrypoints/cli.js:422:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T09:17:19.219Z"},{"error":"Error: {\"message\":\"Failed to export 40 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"422\",\"originalColumn\":\"1668\",\"line\":\"422\",\"column\":\"1668\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 40 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n    at doExport (/$bunfs/root/src/entrypoints/cli.js:422:1668)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (/$bunfs/root/src/entrypoints/cli.js:2711:38214)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:417:36794)\n    at UG4 (/$bunfs/root/src/entrypoints/cli.js:417:37338)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:418:19103)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T09:17:19.219Z"},{"error":"AxiosError: Request failed with status code 404\n    at ig (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T15:44:25.067Z"},{"error":"AxiosError: Request failed with status code 404\n    at ig (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T16:41:03.078Z"},{"error":"Error: Request was aborted.\n    at PV_ (/$bunfs/root/src/entrypoints/cli.js:1245:11933)\n    at next (native:1:11)\n    at Kb7 (/$bunfs/root/src/entrypoints/cli.js:7767:9194)\n    at next (native:1:11)\n    at Tb7 (/$bunfs/root/src/entrypoints/cli.js:7772:11371)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T08:24:45.455Z"},{"error":"Error: Request was aborted.\n    at PV_ (/$bunfs/root/src/entrypoints/cli.js:1245:11933)\n    at next (native:1:11)\n    at Kb7 (/$bunfs/root/src/entrypoints/cli.js:7767:9194)\n    at next (native:1:11)\n    at Tb7 (/$bunfs/root/src/entrypoints/cli.js:7772:11371)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T08:59:12.489Z"}]

extent analysis

TL;DR

The issue seems to be related to errors in reading and writing to directories, as well as aborted requests and failed event exports, suggesting potential issues with file system access, network connectivity, or server timeouts.

Guidance

  1. Check directory permissions: Ensure that the application has the necessary permissions to read and write to the directories involved, such as /Users/michal/workspace/global-vision-reports/pdf-worker.
  2. Verify network connectivity: Confirm that the network connection is stable and that the server is reachable to prevent request timeouts and aborted requests.
  3. Increase server timeouts: If possible, consider increasing the server timeouts to allow for longer request processing times, which might help prevent ECONNABORTED errors.
  4. Review event export logic: Examine the event export logic to ensure it is properly handling failures and retries to prevent events from failing to export.
  5. Check for server errors: Investigate server-side logs for any errors that might be causing the 404 status codes and aborted requests.

Example

No specific code example can be provided without more context, but reviewing the cli.js file at the mentioned lines (e.g., 3866, 422, 108, 1245) might offer insights into the issues.

Notes

The provided information suggests a complex issue with multiple potential causes. It's essential to methodically address each error type to identify and fix the root cause. The EISDIR error, ECONNABORTED errors, and 404 status codes indicate different problems that need separate solutions.

Recommendation

Apply a workaround by checking and adjusting directory permissions, verifying network stability, and potentially increasing server timeouts to mitigate the errors until a more permanent fix can be implemented.

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