Not able to chat with agent in claude code it is throwing...
Resolved 💬 1 comment Opened Jul 10, 2025 by satvik1406 Closed Jul 10, 2025
Bug Description
Not able to chat with agent in claude code it is throwing authorisation error even though I am authenticated
Environment Info
- Platform: linux
- Terminal: cursor
- Version: 1.0.44
- Feedback ID: f5332e41-92b5-4c3b-94b7-51fa4d1cdb2a
Errors
[{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}\n at D6.generate (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1304:12612)\n at gq.makeStatusError (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:2100)\n at gq.makeRequest (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:5311)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-10T00:55:41.683Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}\n at D6.generate (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1304:12612)\n at gq.makeStatusError (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:2100)\n at gq.makeRequest (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:5311)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-10T00:55:41.719Z"},{"error":"Error: 1: 1 [89146:0709/175542.235368:ERROR:ozone_platform_x11.cc(246)] Missing X server or $DISPLAY\n[89146:0709/175542.235390:ERROR:env.cc(257)] The platform failed to initialize. Exiting.\n\n at ChQ (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:4797)\n at async WhQ (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:2578)","timestamp":"2025-07-10T00:55:42.319Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}\n at D6.generate (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1304:12612)\n at gq.makeStatusError (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:2100)\n at gq.makeRequest (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:5311)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-10T00:55:45.184Z"},{"error":"SyntaxError: Unexpected token 'A', \"API Error:\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:618:9971\n at Q (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n at Lw2 (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1337:10306)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-10T00:55:45.186Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}\n at D6.generate (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1304:12612)\n at gq.makeStatusError (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:2100)\n at gq.makeRequest (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:5311)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async fA1.showErrors (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:23214)\n at async fA1 (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:12720)\n at async aR2 (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:23062)\n at async file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:18138\n at async Y0A (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:5121)\n at async Vc (file:///home/sai-satvik-vuppala/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1690:18108)","timestamp":"2025-07-10T00:55:45.316Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was
Note: Error logs were truncated.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗