奥特曼今天杀疯了, 没有token,我怎么写代码啊(好像成功率上来了,但是还是杀太快了)

2026-04-11 15:200阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

workspace/select 失败: 400, 2026-03-28 04:28:35 } 2026-03-28 04:28:36 "code": "no_valid_organizations" 2026-03-28 04:28:36 "message": "You do not have any valid organizations.", 2026-03-28 04:28:36 "param": null, 2026-03-28 04:28:36 "type": "invalid_request_error", 2026-03-28 04:28:36 raise Exception(f"{msg}(oauth_required=true)") 2026-03-28 04:28:36 "error": { 2026-03-28 04:28:36 File "/app/chatgpt_register.py", line 3376, in _register_one 2026-03-28 04:28:36 }

等佬友发力,古法编程开始.

用gpt-5.2 改了一下

# Prefer cached workspace_id, but fall back to iterating all workspace candidates. workspace_ids = [] cached_id = (self._oauth_workspace_id or "").strip() if cached_id: workspace_ids.append(cached_id) for ws in workspaces: ws_id = str((ws or {}).get("id") or "").strip() if ws_id and ws_id not in workspa

阅读全文
问题描述:

workspace/select 失败: 400, 2026-03-28 04:28:35 } 2026-03-28 04:28:36 "code": "no_valid_organizations" 2026-03-28 04:28:36 "message": "You do not have any valid organizations.", 2026-03-28 04:28:36 "param": null, 2026-03-28 04:28:36 "type": "invalid_request_error", 2026-03-28 04:28:36 raise Exception(f"{msg}(oauth_required=true)") 2026-03-28 04:28:36 "error": { 2026-03-28 04:28:36 File "/app/chatgpt_register.py", line 3376, in _register_one 2026-03-28 04:28:36 }

等佬友发力,古法编程开始.

用gpt-5.2 改了一下

# Prefer cached workspace_id, but fall back to iterating all workspace candidates. workspace_ids = [] cached_id = (self._oauth_workspace_id or "").strip() if cached_id: workspace_ids.append(cached_id) for ws in workspaces: ws_id = str((ws or {}).get("id") or "").strip() if ws_id and ws_id not in workspa

阅读全文