NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] 代理地址部署的时候环境变量里填写可用,但网页里自定义地址就失效

Open fatwang2 opened this issue 1 year ago • 5 comments

vercel部署的时候,环境变量里填写base url可以用,但是在页面上直接通过自定义地址填写就不可以用了,不知道是哪里出了问题,请问有什么排查思路吗? { "error": true, "message": "Failed to fetch" }

fatwang2 avatar Dec 27 '23 14:12 fatwang2

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] When deploying the proxy address, it is available to fill in the environment variables, but the customized address on the web page is invalid.

When deploying vercel, it works if you fill in the base url in the environment variable, but it doesn't work if you fill it in with a custom address directly on the page. I don't know what went wrong. Do you have any troubleshooting ideas? { "error": true, "message": "Failed to fetch" }

Issues-translate-bot avatar Dec 27 '23 14:12 Issues-translate-bot

Try to set insecure content to allow.

armangido avatar Jan 14 '24 19:01 armangido

Try to set insecure content to allow.

here is my problem:

  1. deploy one-api in localhost setup the enter-point to http://localhost:3000 -> Here works fine
  2. deploy one-api in the public internet, and set the enter-point to http://public.domain.com:3001 -> Here I got the error, but I have used Postman to verify the public deployment it works fine.

So please let me know how to set the insecure content.

hxshandle avatar Jan 29 '24 12:01 hxshandle

Try to set insecure content to allow.

here is my problem:

  1. deploy one-api in localhost setup the enter-point to http://localhost:3000 -> Here works fine
  2. deploy one-api in the public internet, and set the enter-point to http://public.domain.com:3001 -> Here I got the error, but I have used Postman to verify the public deployment it works fine.

So please let me know how to set the insecure content. If your using chrome changing the site settings insecure content to allow and try if it works.

armangido avatar Jan 29 '24 13:01 armangido

hi @armangido I have changed my web site from http to https and now it works.

hxshandle avatar Jan 30 '24 15:01 hxshandle