anthropics / anthropics/claude-code-action

App token exchange failed: 500 Internal Server Error - Internal server error

Open
#926 6 comments 4 reactions 0 assignees View on GitHub
area:permissions bug p1 provider:1p
Dominant language
TypeScript
Stars
8.9k
Forks
2.1k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

**Describe the bug**

all our CI runs fail with
```
Auto-detected mode: agent for event: pull_request
Requesting OIDC token...
Attempt 1 of 3...
OIDC token successfully obtained
Exchanging OIDC token for app token...
Attempt 1 of 3...
App token exchange failed: 500 Internal Server Error - Internal server error
Attempt 1 failed: Internal server error
Retrying in 5 seconds...
Attempt 2 of 3...
App token exchange failed: 500 Internal Server Error - Internal server error
Retrying in 10 seconds...
Attempt 2 failed: Internal server error
Attempt 3 of 3...
App token exchange failed: 500 Internal Server Error - Internal server error
Attempt 3 failed: Internal server error
Operation failed after 3 attempts
Error: Action failed with error: Internal server error
Error: Process completed with exit code 1.
```

**To Reproduce**
* happens for all CI runs

**Expected behavior**
* The auth to succeed and the action to run

**Screenshots**

Image

**Workflow yml file**

**API Provider**

[x] Anthropic First-Party API (default)
[ ] AWS Bedrock
[ ] GCP Vertex

**Additional context**
* related to #863
* checked app permissions and everything looks fine

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.