[BUG]

Resolved 💬 2 comments Opened Mar 13, 2026 by hf6420 Closed Mar 20, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Cannot set properties of undefined (setting 'output_tokens')
View output logs · Troubleshooting resources

2026-03-13 15:07:29.165 [info] From claude: 2026-03-13T07:07:29.151Z [ERROR] "Error: Error: {\"message\":\"Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\",\"originalLine\":\"6854\",\"originalColumn\":\"1715\",\"line\":\"6854\",\"column\":\"1715\",\"sourceURL\":\"B:/~BUN/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\\n at doExport (B:/~BUN/root/src/entrypoints/cli.js:6854:1715)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (B:/~BUN/root/src/entrypoints/cli.js:2647:23759)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:102:81876)\n at hML (B:/~BUN/root/src/entrypoints/cli.js:102:82420)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:103:17366)\n at processTicksAndRejections (native:7:39)"
2026-03-13T07:07:29.151Z [ERROR] [3P telemetry] OTEL diag error: {"message":"Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)","originalLine":"6854","originalColumn":"1715","line":"6854","column":"1715","sourceURL":"B:/~BUN/root/src/entrypoints/cli.js","stack":"Error: Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\n at doExport (B:/~BUN/root/src/entrypoints/cli.js:6854:1715)\n at processTicksAndRejections (native:7:39)","name":"Error"}

What Should Happen?

Cannot set properties of undefined (setting 'output_tokens')
View output logs · Troubleshooting resources

2026-03-13 15:07:29.165 [info] From claude: 2026-03-13T07:07:29.151Z [ERROR] "Error: Error: {\"message\":\"Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\",\"originalLine\":\"6854\",\"originalColumn\":\"1715\",\"line\":\"6854\",\"column\":\"1715\",\"sourceURL\":\"B:/~BUN/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\\n at doExport (B:/~BUN/root/src/entrypoints/cli.js:6854:1715)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (B:/~BUN/root/src/entrypoints/cli.js:2647:23759)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:102:81876)\n at hML (B:/~BUN/root/src/entrypoints/cli.js:102:82420)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:103:17366)\n at processTicksAndRejections (native:7:39)"
2026-03-13T07:07:29.151Z [ERROR] [3P telemetry] OTEL diag error: {"message":"Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)","originalLine":"6854","originalColumn":"1715","line":"6854","column":"1715","sourceURL":"B:/~BUN/root/src/entrypoints/cli.js","stack":"Error: Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\n at doExport (B:/~BUN/root/src/entrypoints/cli.js:6854:1715)\n at processTicksAndRejections (native:7:39)","name":"Error"}

Error Messages/Logs

Cannot set properties of undefined (setting 'output_tokens')
View output logs · [Troubleshooting resources](https://code.claude.com/docs/en/vs-code#troubleshooting)


2026-03-13 15:07:29.165 [info] From claude: 2026-03-13T07:07:29.151Z [ERROR] "Error: Error: {\"message\":\"Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\",\"originalLine\":\"6854\",\"originalColumn\":\"1715\",\"line\":\"6854\",\"column\":\"1715\",\"sourceURL\":\"B:/~BUN/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\\n    at doExport (B:/~BUN/root/src/entrypoints/cli.js:6854:1715)\\n    at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n    at error (B:/~BUN/root/src/entrypoints/cli.js:2647:23759)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:102:81876)\n    at hML (B:/~BUN/root/src/entrypoints/cli.js:102:82420)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:103:17366)\n    at processTicksAndRejections (native:7:39)"
2026-03-13T07:07:29.151Z [ERROR] [3P telemetry] OTEL diag error: {"message":"Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)","originalLine":"6854","originalColumn":"1715","line":"6854","column":"1715","sourceURL":"B:/~BUN/root/src/entrypoints/cli.js","stack":"Error: Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\n    at doExport (B:/~BUN/root/src/entrypoints/cli.js:6854:1715)\n    at processTicksAndRejections (native:7:39)","name":"Error"}

Steps to Reproduce

Cannot set properties of undefined (setting 'output_tokens')
View output logs · Troubleshooting resources

2026-03-13 15:07:29.165 [info] From claude: 2026-03-13T07:07:29.151Z [ERROR] "Error: Error: {\"message\":\"Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\",\"originalLine\":\"6854\",\"originalColumn\":\"1715\",\"line\":\"6854\",\"column\":\"1715\",\"sourceURL\":\"B:/~BUN/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\\n at doExport (B:/~BUN/root/src/entrypoints/cli.js:6854:1715)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (B:/~BUN/root/src/entrypoints/cli.js:2647:23759)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:102:81876)\n at hML (B:/~BUN/root/src/entrypoints/cli.js:102:82420)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:103:17366)\n at processTicksAndRejections (native:7:39)"
2026-03-13T07:07:29.151Z [ERROR] [3P telemetry] OTEL diag error: {"message":"Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)","originalLine":"6854","originalColumn":"1715","line":"6854","column":"1715","sourceURL":"B:/~BUN/root/src/entrypoints/cli.js","stack":"Error: Failed to export 1 events (status=403, code=ERR_BAD_REQUEST, Request failed with status code 403)\n at doExport (B:/~BUN/root/src/entrypoints/cli.js:6854:1715)\n at processTicksAndRejections (native:7:39)","name":"Error"}

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.74

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗