claude-code - 💡(How to fix) Fix generalized error 500  API Error: 500... [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#48603Fetched 2026-04-16 06:55:47
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
2
Author
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"SyntaxError: JSON Parse error: Unrecognized token '/'\n at <parse> (:0)\n at parse (unknown)\n at MI8 (/$bunfs/root/src/entrypoints/cli.js:167:10030)\n at O (/$bunfs/root/src/entrypoints/cli.js:130:19335)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:169:1186)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:17314:347)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:19.745Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:19.852Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:21.390Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:21.397Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:52:36.944Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:52:36.946Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: "pyright-langserver"\n at start (/$bunfs/root/src/entrypoints/cli.js:1806:22349)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.838Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:1806:20885)\n at w (/$bunfs/root/src/entrypoints/cli.js:1806:24868)\n at $ (/$bunfs/root/src/entrypoints/cli.js:1806:29940)\n at w (/$bunfs/root/src/entrypoints/cli.js:1806:30277)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1806:30823)\n at call (/$bunfs/root/src/entrypoints/cli.js:4198:1370)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.840Z"},{"error":"Error: Failed to start LSP server for file /Users/ey/Documents/fsma_kid_Doclib/backend/tests/test_extraction/test_variants.py: Executable not found in $PATH: "pyright-langserver"\n at $ (/$bunfs/root/src/entrypoints/cli.js:1806:29966)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.840Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:1806:20885)\n at w (/$bunfs/root/src/entrypoints/cli.js:1806:24868)\n at $ (/$bunfs/root/src/entrypoints/cli.js:1806:29940)\n at w (/$bunfs/root/src/entrypoints/cli.js:1806:30277)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1806:30823)\n at call (/$bunfs/root/src/entrypoints/cli.js:4198:1370)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.840Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: "pyright-langserver"\n at start (/$bunfs/root/src/entrypoints/cli.js:1806:22349)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:46:41.712Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n…

Code Example

[{"error":"SyntaxError: JSON Parse error: Unrecognized token '/'\n    at <parse> (:0)\n    at parse (unknown)\n    at MI8 (/$bunfs/root/src/entrypoints/cli.js:167:10030)\n    at O (/$bunfs/root/src/entrypoints/cli.js:130:19335)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:169:1186)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:17314:347)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:19.745Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:19.852Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:21.390Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:21.397Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:52:36.944Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:52:36.946Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1806:22349)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.838Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1806:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1806:24868)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1806:29940)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1806:30277)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1806:30823)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4198:1370)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.840Z"},{"error":"Error: Failed to start LSP server for file /Users/ey/Documents/fsma_kid_Doclib/backend/tests/test_extraction/test_variants.py: Executable not found in $PATH: \"pyright-langserver\"\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1806:29966)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.840Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1806:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1806:24868)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1806:29940)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1806:30277)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1806:30823)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4198:1370)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.840Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1806:22349)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:46:41.712Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n…
RAW_BUFFERClick to expand / collapse

Bug Description generalized error 500  API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5juSkBdaWEWxtztbS1R"} · check
status.claude.com

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.109
  • Feedback ID: 764136e8-26fd-4dc0-a71b-2d9006262daa

Errors

[{"error":"SyntaxError: JSON Parse error: Unrecognized token '/'\n    at <parse> (:0)\n    at parse (unknown)\n    at MI8 (/$bunfs/root/src/entrypoints/cli.js:167:10030)\n    at O (/$bunfs/root/src/entrypoints/cli.js:130:19335)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:169:1186)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:17314:347)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:19.745Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:19.852Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:21.390Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:51:21.397Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:52:36.944Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T11:52:36.946Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1806:22349)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.838Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1806:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1806:24868)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1806:29940)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1806:30277)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1806:30823)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4198:1370)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.840Z"},{"error":"Error: Failed to start LSP server for file /Users/ey/Documents/fsma_kid_Doclib/backend/tests/test_extraction/test_variants.py: Executable not found in $PATH: \"pyright-langserver\"\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1806:29966)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.840Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1806:20885)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1806:24868)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1806:29940)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1806:30277)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1806:30823)\n    at call (/$bunfs/root/src/entrypoints/cli.js:4198:1370)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:45:54.840Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1806:22349)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T12:46:41.712Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n…

Note: Content was truncated.

extent analysis

TL;DR

Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable and ensure pyright-langserver is installed and in the system's PATH.

Guidance

  • The errors indicate a missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable, which is required for the GitHub plugin to function correctly. Set this variable with a valid token.
  • The pyright-langserver executable is not found in the system's PATH. Install pyright using a package manager like npm or yarn, and ensure the executable is added to the system's PATH.
  • Verify that the environment variables are set correctly and the pyright-langserver executable is accessible by checking the system's PATH and environment variables.
  • If using a package manager, try reinstalling pyright to ensure the latest version is installed and the executable is properly linked.

Example

No code snippet is provided as the issue is related to environment variables and executable paths.

Notes

The provided error messages are truncated, so there might be additional issues not addressed here. Ensure to review the full error log for any other potential problems.

Recommendation

Apply the workaround by setting the GITHUB_PERSONAL_ACCESS_TOKEN environment variable and installing pyright-langserver to fix the immediate issues. This should resolve the errors related to the missing token and executable.

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