happy icon indicating copy to clipboard operation
happy copied to clipboard

ReAuth message not shown in mobile app

Open GrocerPublishAgent opened this issue 1 year ago โ€ข 4 comments

Every time Anthropic has an outage it seems like I have to get a new auth token.

Today, I was out of the house and trying to start new sessions, and it said the app was connected but nothing happened. Only when I got home did I discover my sessions were stuck on an API error.

๐Ÿค– Assistant:                                                                                                                   โ”‚
โ”‚                                                                                                                                 โ”‚
โ”‚ API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a       โ”‚
โ”‚  new token or refresh your existing token."},"request_id":"req_011CT9LsDUxF6ZwghPeSBvrP"} ยท Please run /login                   โ”‚
โ”‚                                                                                                                                 โ”‚
โ”‚ โœจ Summary:                                                                                                                     โ”‚
โ”‚                                                                                                                                 โ”‚
โ”‚ API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a       โ”‚
โ”‚  new token or refresh your existing token."},"request_id":"req_011CT9LsDUxF6ZwghPeSBvrP"} ยท Please run /login                   โ”‚
โ”‚                                                                                                                                 

The app showed me nothing. Checked the app logs with dev build and found:

 LOG  ๐Ÿ”„ Sync: handleUpdate called with: {"id":"MAGIWuHHJEqD","seq":524,"body":{"t":"new-message","sid":"cmfkg8z0q9hx4xx14tfzu2alz","message":{"id":"cmfkgrljo9qe5xx14x41lb9rk","seq":4,"content":{"c":"1XQoEwxSYuxdH2sjGZkAtbJ2VfrvQBBmM4e7M8qviWIpC65bqwaX95fIeHL+LolfZynLoVntGKiFguVhqJLHONOUyisHinwiK3brxXrbBLeXgJIbNPtiA0N3P/UoUbIYZZemwysc9S5xU
 LOG  ๐Ÿ”„ Sync: Validated update type: new-message
 ERROR  Invalid raw record:
 ERROR  [{"code": "invalid_type", "expected": "string", "message": "Invalid input: expected string, received null", "path": ["content", "data", "message", "usage", "service_tier"]}]
 ERROR  {"content": {"data": {"cwd": "/Users/user/src/19-high-demand/19.05-joint-venture-claude-code-client/expo-mobile-app", "gitBranch": "main", "isSidechain": false, "message": [Object], "parentUuid": "36677b30-4f7f-407e-9727-033cd0e91951", "sessionId": "6d6a385d-ffb5-4ac7-a9cf-5d3f0fdb16d3", "timestamp": "2025-09-15T01:47:10.037Z", "type": "assistant", "userType": "external", "uuid": "1aa04037-f417-4dff-8899-afb502c5cb10", "version": "0.0.0"}, "type": "output"}, "meta": {"sentFrom": "cli"}, "role": "agent"}
 ERROR  Invalid raw record:
 ERROR  [{"code": "invalid_type", "expected": "string", "message": "Invalid input: expected string, received null", "path": ["content", "data", "message", "usage", "service_tier"]}]
 ERROR  {"content": {"data": {"cwd": "/Users/user/src/19-high-demand/19.05-joint-venture-claude-code-client/expo-mobile-app", "gitBranch": "main", "isSidechain": false, "message": [Object], "parentUuid": "36677b30-4f7f-407e-9727-033cd0e91951", "sessionId": "6d6a385d-ffb5-4ac7-a9cf-5d3f0fdb16d3", "timestamp": "2025-09-15T01:47:10.037Z", "type": "assistant", "userType": "external", "uuid": "1aa04037-f417-4dff-8899-afb502c5cb10", "version": "0.0.0"}, "type": "output"}, "meta": {"sentFrom": "cli"}, "role": "agent"}
 LOG  Batch decrypted and normalized messages in 2 ms

GrocerPublishAgent avatar Sep 15 '25 04:09 GrocerPublishAgent

Same issue. Getting logged out frequently now so really interrupts usage by not being prompted/able to log back in on mobile.

sachit-menon avatar Sep 19 '25 13:09 sachit-menon

I can't even make a single log in. Facing with this errro from the beginning.

netandreus avatar Sep 27 '25 10:09 netandreus

Same issue when using web

chuck-ma avatar Oct 23 '25 05:10 chuck-ma

Would be great if this could be prioritized, it really breaks your workflow. And it took a while to even understand that was what was happening when you get no response.

plufz avatar Nov 07 '25 10:11 plufz