Cognito get_user_by_access_token failed: Invalid access token, #<Cupix::Auth::VerifiedAccessToken:0x
Service
cupixworks-api
Occurrences
3
Status
Reported
Confidence
85%
Actionability
44%
Cluster ID
9e5110d0-188e-4621-b353-e24cc6ef60f4
First Seen
2026-05-01 01:08 UTC
Last Seen
2026-07-13 04:36 UTC
Actions
Cognito get_user_by_access_token failed: Invalid access token, #<Cupix::Auth::VerifiedAccessToken:0x
What Happened#
2026-05-01T01:08:01Z에 EU 리전(eu-central-1)의 cupixworks-api 서비스에서 Cognito GetUser API 호출이 "Invalid access token" 에러로 실패했다. JWT 토큰이 만료된 지 약 2초 후에 Cognito API를 호출하여 NotAuthorizedException이 발생한 단건 이벤트이다.
Quick Facts#
| Field | Value |
|---|---|
| exception.class | Aws::CognitoIdentityProvider::Errors::NotAuthorizedException |
| exception.message | Invalid access token |
| top_frame | lib/cupix/aws/cognito.rb:209 |
| env | production, eu-central-1 |
Timeline#
- 2026-05-01T00:05:31Z — 동일 사용자(
sub: 95921906-...)의 Cognito user 캐시 적재 (1시간 TTL) - 2026-05-01T00:07:59Z — Access token 발급 (
iat: 1777594079) - 2026-05-01T01:07:59Z — Access token 만료 (
exp: 1777597679) - 2026-05-01T01:08:01Z — API 요청 도착, JWT 로컬 검증 통과 (캐시), Cognito user 캐시 만료로
GetUserAPI 호출 → 만료 토큰으로 인해 실패
Scoring#
Confidence 85% · Actionability 44%
Confidence#
| Dimension | Score | Detail |
|---|---|---|
| Evidence completeness | 5/5 | 12 code refs, 2 log queries |
| Code path explicitness | 3/3 | 12 file:line refs |
| Log evidence | 3/3 | section, query, pattern |
| RCA structure | 3/3 | 3/3 sections |
| Revision history | 0/3 | 0 revision(s) |
| Agent execution | 3/3 | success |
Actionability#
| Dimension | Score | Detail |
|---|---|---|
| Fix complexity | 5/5 | trivial |
| Affected files | 1/5 | 9 file(s) |
| Single repo | 1/3 | 2 service(s) |
| Immediate actions | 0/3 | absent |
| Testability | 0/3 | no test info |
| External dependency | 1/3 | external deps found |
| Data migration | 3/3 | no migration |