mirror of
https://github.com/NikkeTryHard/zerogravity.git
synced 2026-04-25 15:15:59 +03:00
[GH-ISSUE #45] accounts 刷新token问题 #38
Labels
No labels
bug
enhancement
enhancement
notice
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/zerogravity#38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Additional Context
No response
@NikkeTryHard commented on GitHub (Feb 21, 2026):
actually i can fix it. lemme fix it real quick
@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.