mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 17:35:58 +03:00
[GH-ISSUE #50] qwen 这里多账号配置文件是不是有点问题? #45
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#45
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 @MengxuanDai on GitHub (Sep 17, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/50
最后使用codex让其修复了
prompt 文件缺失和一些无关的 API key 警告,然后服务器在绑定 8005 端口时被沙箱拒绝。虽然端口没绑定成功,但足够看到初始化流程和 token 刷新触发的位置。
略,服务退回到单账号模式。
QWEN_OAUTH_CREDS_FILE_PATH,也没被用到;多个账号也会抢同一个锁。定时刷新或 401 重试时,因为没有正确的 refresh token,就抛出“刷新失败”。
独立的缓存和锁文件(锁文件改为 oauth_credsX.json.lock),并在进程退出时清理所有锁。
载入各自的 access/refresh token,说明路径隔离生效。
整个过程从日志暴露的 JSON 解析异常入手,确认配置没有生效,再深入到 token 管理器的实现,最终让多个账号各用各的凭据和锁,刷新逻辑恢复正常。
▌ 如果provider_pools.json是好的后面会正常运行么?
@MengxuanDai commented on GitHub (Sep 17, 2025):
仅供参考,我这修复后就正常运行了。
@justlovemaki commented on GitHub (Sep 17, 2025):
能把你修复后的代码传上来看看吗?配置文件的逗号问题可能是你的手误,示例的配置文件放json格式化里是没有报错的。其他的可能有问题,明天看看
@justlovemaki commented on GitHub (Sep 18, 2025):
fixed with #52