NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] 自定义 API 接口地址后聊天报错 "Failed to fetch"

Open zjsxply opened this issue 3 years ago • 3 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce 将 https://<domain>/v1 填入作为 API 接口地址,可以查询余额,但聊天报错 Failed to fetch image image

将 https://<domain> 填入作为 API 接口地址,无法查询余额,聊天正常

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Deployment

  • [ ] Docker
  • [x ] Vercel
  • [ ] Server

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional Logs Add any logs about the problem here.

zjsxply avatar Jun 14 '23 03:06 zjsxply

首先你得确定 api 地址支持查询余额才行。

Yidadaa avatar Jun 14 '23 03:06 Yidadaa

首先你得确定 api 地址支持查询余额才行。

复现过程已经表明 api 地址支持聊天且支持查询余额。

zjsxply avatar Jun 14 '23 03:06 zjsxply

@zjsxply

你得看控制台的网络选项卡,看看网络请求成功没有,前端对余额查询做了缓存,就算查询失败也会展示缓存的结果。

Yidadaa avatar Jun 14 '23 03:06 Yidadaa