[GH-ISSUE #45] accounts 刷新token问题 #38

Closed
opened 2026-02-27 15:38:03 +03:00 by kerem · 2 comments
Owner

Originally created by @yangmoling on GitHub (Feb 21, 2026).
Original GitHub issue: https://github.com/NikkeTryHard/zerogravity/issues/45

What happened?

1 通过post 提交的account
2 运行中出现eb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: 2026-02-21T08:26:34.802520Z WARN zerogravity::mitm::proxy: MITM: upstream error response domain="daily-cloudcode-pa.googleapis.com" status=401 body={
Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: "error": {
Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: "code": 401,
Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: "status": "UNAUTHENTICATED"
Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: }
Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: }
Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: 2026-02-21T08:26:34.931030Z WARN zerogravity::mitm::proxy: MITM: upstream error response domain="daily-cloudcode-pa.googleapis.com" status=401 body=<binary 308B: 30 30 30 30 30 30 30 31 0d 0a 1f 0d 0a 30 30 30 30 30 30 30 31 0d 0a 8b 0d 0a 30 30 30 30 30 30 30 31 0d 0a 08 0d 0a 30 30 30 30 30 30 30 31 0d 0a 00 0d 0a 30 30 30 30 30 30 30 31 0d 0a 00 0d...>
Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: 2026-02-21T08:26:34.931046Z WARN zerogravity::mitm::proxy: MITM: upstream error response domain="daily-cloudcode-pa.googleapis.com" status=401 body=<binary 385B: 30 30 30 30 30 30 30 31 0d 0a 1f 0d 0a 30 30 30 30 30 30 30 31 0d 0a 8b 0d 0a 30 30 30 30 30 30 30 31 0d 0a 08 0d 0a 30 30 30 30 30 30 30 31 0d 0a 00 0d 0a 30 30 30 30 30 30 30 31 0d 0a 00 0d...>
Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: 2026-02-21T08:26:34.931101Z WARN zerogravity::mitm::proxy: MITM: upstream error, no channel — storing for polling fallback
Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: 2026-02-21T08:

3 token 失效
4 重启 zg restart 解决

How to reproduce

No response

Diagnostic Report

1

Additional Context

No response

Originally created by @yangmoling on GitHub (Feb 21, 2026). Original GitHub issue: https://github.com/NikkeTryHard/zerogravity/issues/45 ### What happened? 1 通过post 提交的account 2 运行中出现eb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: 2026-02-21T08:26:34.802520Z WARN zerogravity::mitm::proxy: MITM: upstream error response domain="daily-cloudcode-pa.googleapis.com" status=401 body={ Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: "error": { Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: "code": 401, Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: "status": "UNAUTHENTICATED" Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: } Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: } Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: 2026-02-21T08:26:34.931030Z WARN zerogravity::mitm::proxy: MITM: upstream error response domain="daily-cloudcode-pa.googleapis.com" status=401 body=<binary 308B: 30 30 30 30 30 30 30 31 0d 0a 1f 0d 0a 30 30 30 30 30 30 30 31 0d 0a 8b 0d 0a 30 30 30 30 30 30 30 31 0d 0a 08 0d 0a 30 30 30 30 30 30 30 31 0d 0a 00 0d 0a 30 30 30 30 30 30 30 31 0d 0a 00 0d...> Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: 2026-02-21T08:26:34.931046Z WARN zerogravity::mitm::proxy: MITM: upstream error response domain="daily-cloudcode-pa.googleapis.com" status=401 body=<binary 385B: 30 30 30 30 30 30 30 31 0d 0a 1f 0d 0a 30 30 30 30 30 30 30 31 0d 0a 8b 0d 0a 30 30 30 30 30 30 30 31 0d 0a 08 0d 0a 30 30 30 30 30 30 30 31 0d 0a 00 0d 0a 30 30 30 30 30 30 30 31 0d 0a 00 0d...> Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: 2026-02-21T08:26:34.931101Z WARN zerogravity::mitm::proxy: MITM: upstream error, no channel — storing for polling fallback Feb 21 16:26:34 DESKTOP-LFOOFGM zerogravity[61649]: 2026-02-21T08: 3 token 失效 4 重启 zg restart 解决 ### How to reproduce _No response_ ### Diagnostic Report ```text 1 ``` ### Additional Context _No response_
kerem 2026-02-27 15:38:03 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@NikkeTryHard commented on GitHub (Feb 21, 2026):

actually i can fix it. lemme fix it real quick

<!-- gh-comment-id:3938510282 --> @NikkeTryHard commented on GitHub (Feb 21, 2026): actually i can fix it. lemme fix it real quick
Author
Owner

@NikkeTryHard commented on GitHub (Feb 21, 2026):

Fixed in latest commit. POST /v1/accounts now immediately refreshes the token and propagates it to the LS — no restart needed.

<!-- gh-comment-id:3938515947 --> @NikkeTryHard commented on GitHub (Feb 21, 2026): Fixed in latest commit. POST /v1/accounts now immediately refreshes the token and propagates it to the LS — no restart needed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zerogravity#38
No description provided.