我在VScode和Cursor中使用codex扩展,在利用chatGPT账号进行登录时遇到以下问题:

Token exchange failed: token endpoint returned status 403 Forbidden
Token exchange failed: error sending request for url (https://auth.openai.com/oauth/token)

解决方法:

  1. 在扩展中搜索codex插件
  2. 点击插件右下角设置图标⚙,点击展开栏目中的“设置”
  3. 关闭Chatgpt: Run Codex In Windows Subsystem For Linux的勾选

额外说明:

问题出现原因在于使用agent模式时需要WSL,因此采用这样的解决方式无法使用agent模式,只能使用chat和agent(full access)模式。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐