claude-code - 💡(How to fix) Fix I am getting the Api Error:500 repeatedly from past 10... [5 comments, 6 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#48609Fetched 2026-04-16 06:55:39
View on GitHub
Comments
5
Participants
6
Timeline
10
Reactions
7
Timeline (top)
commented ×5labeled ×4cross-referenced ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/harsh/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n at NU$ (/$bunfs/root/src/entrypoints/cli.js:2344:2153)\n at Es8 (/$bunfs/root/src/entrypoints/cli.js:2344:1233)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:02.609Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at gMH (/$bunfs/root/src/entrypoints/cli.js:1722:33935)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:02.682Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at gMH (/$bunfs/root/src/entrypoints/cli.js:1722:33935)\n at async Z (/$bunfs/root/src/entrypoints/cli.js:6111:10916)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:03.851Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at gMH (/$bunfs/root/src/entrypoints/cli.js:1722:33935)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6111:11711)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:03.852Z"},{"error":"Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5jbhvjgygedcxFDTszK"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:12.385Z"},{"error":"Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5k7QULpuJX1EZbWbHEa"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:50:55.562Z"},{"error":"Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5kCu6vJcZiLzjrnCBuJ"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:52:10.000Z"},{"error":"Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011Ca5kLqEyYGPqmu5wc37ai"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:53:57.625Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/harsh/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n    at NU$ (/$bunfs/root/src/entrypoints/cli.js:2344:2153)\n    at Es8 (/$bunfs/root/src/entrypoints/cli.js:2344:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:02.609Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at gMH (/$bunfs/root/src/entrypoints/cli.js:1722:33935)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:02.682Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at gMH (/$bunfs/root/src/entrypoints/cli.js:1722:33935)\n    at async Z (/$bunfs/root/src/entrypoints/cli.js:6111:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:03.851Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at gMH (/$bunfs/root/src/entrypoints/cli.js:1722:33935)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6111:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:03.852Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5jbhvjgygedcxFDTszK\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:12.385Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5k7QULpuJX1EZbWbHEa\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:50:55.562Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5kCu6vJcZiLzjrnCBuJ\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:52:10.000Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5kLqEyYGPqmu5wc37ai\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:53:57.625Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description I am getting the Api Error:500 repeatedly from past 10 minutes but status.claude shows green

Environment Info

  • Platform: linux
  • Terminal: tmux
  • Version: 2.1.109
  • Feedback ID: 8e9c4143-f926-4f7c-bc0d-955968e4afa0

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/harsh/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n    at NU$ (/$bunfs/root/src/entrypoints/cli.js:2344:2153)\n    at Es8 (/$bunfs/root/src/entrypoints/cli.js:2344:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:02.609Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at gMH (/$bunfs/root/src/entrypoints/cli.js:1722:33935)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:02.682Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at gMH (/$bunfs/root/src/entrypoints/cli.js:1722:33935)\n    at async Z (/$bunfs/root/src/entrypoints/cli.js:6111:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:03.851Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at gMH (/$bunfs/root/src/entrypoints/cli.js:1722:33935)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6111:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:03.852Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5jbhvjgygedcxFDTszK\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:44:12.385Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5k7QULpuJX1EZbWbHEa\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:50:55.562Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5kCu6vJcZiLzjrnCBuJ\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:52:10.000Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011Ca5kLqEyYGPqmu5wc37ai\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52527)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T14:53:57.625Z"}]

extent analysis

TL;DR

Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the API Error: 500 issue.

Guidance

  • The errors indicate a missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable, which is required for the MCP server to function correctly.
  • To mitigate the issue, set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable before running the application.
  • Verify that the environment variable is set correctly by checking the output of the printenv command or the equivalent command in your terminal.
  • If the issue persists, check the MCP server configuration to ensure it is correctly set up to use the GITHUB_PERSONAL_ACCESS_TOKEN environment variable.

Example

export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_value

Replace your_token_value with your actual GitHub personal access token.

Notes

The provided solution assumes that the GITHUB_PERSONAL_ACCESS_TOKEN environment variable is the root cause of the issue. If the issue persists after setting the environment variable, further investigation may be required to identify the underlying cause.

Recommendation

Apply the workaround by setting the GITHUB_PERSONAL_ACCESS_TOKEN environment variable, as it is the most likely cause of the issue.

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

claude-code - 💡(How to fix) Fix I am getting the Api Error:500 repeatedly from past 10... [5 comments, 6 participants]