NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] 请问vercel是不是被openai封ip了?用vercel部署的网页提交问题就报“Sorry, you have been blocked”,有什么办法解决么?

Open keney2023 opened this issue 3 years ago • 31 comments

为了提高交流效率,我们设立了官方 QQ 群和 QQ 频道,如果你在使用或者搭建过程中遇到了任何问题,请先第一时间加群或者频道咨询解决,除非是可以稳定复现的 Bug 或者较为有创意的功能建议,否则请不要随意往 Issue 区发送低质无意义帖子。

点击加入官方群聊

反馈须知

⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭,如果没有提供下方的信息,我们无法定位你的问题。

请在下方中括号内输入 x 来表示你已经知晓相关内容。

  • [x] 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
  • [x] 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
  • [x] 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。

描述问题 [Bug] 请问vercel是不是被openai封ip了有什么办法解决么?

如何复现 用vercel部署的网页提交问题就报“Sorry, you have been blocked”,

截图 请在此提供控制台截图、屏幕截图或者服务端的 log 截图。 图片

一些必要的信息

  • 系统:[比如 windows 10]
  • 浏览器: [比如 chrome]
  • 版本: [填写设置页面的版本号]
  • 部署方式:[比如 vercel部署]

keney2023 avatar Nov 16 '23 07:11 keney2023

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


Title: [Bug] Is vercel’s IP blocked by openai? When submitting a problem on a webpage deployed with vercel, it reports "Sorry, you have been blocked". Is there any way to solve it?

In order to improve communication efficiency, we have set up an official QQ group and QQ channel. If you encounter any problems during use or construction, please join the group or channel for consultation as soon as possible, unless it is a bug that can be stably reproduced or More creative feature suggestions, otherwise please do not send low-quality and meaningless posts to the Issue area.

Click to join the official group chat

Feedback Instructions

⚠️ NOTE: Any post that does not follow this template will be immediately closed and we will not be able to locate your issue without providing the information below.

Please enter x in the square brackets below to indicate that you already know the relevant content.

  • [ ] I confirm that I have searched for the feedback issue in FAQ, and there is no find the solution;
  • [ ] I confirm that I have searched the Issues list (including those that have been Closed) for this feedback issue, but no answer has been found.
  • [ ] I confirm that I have searched for the feedback issue in Vercel usage tutorial. No answer found.

Describe the problem [Bug] Is there any way to solve the problem of vercel being blocked by openai?

How ​​to reproduce When submitting a problem using a webpage deployed with vercel, it will report "Sorry, you have been blocked".

screenshot Please provide console screenshots, screenshots, or server-side log screenshots here. Picture

Some necessary information

  • System: [such as windows 10]
  • Browser: [such as chrome]
  • Version: [Fill in the version number of the settings page]
  • Deployment method: [such as vercel deployment]

Issues-translate-bot avatar Nov 16 '23 07:11 Issues-translate-bot

I am having the same issue. Also doesn't work when deployed to vercel. Works in codepod and I assume local.

jtv199 avatar Nov 16 '23 07:11 jtv199

Managed to visualize the returned html message. It seems that the IP is banned due to attack protection.

image

ventusff avatar Nov 16 '23 07:11 ventusff

我一个同事用用safari,报这个错,换成chrome好了

bruceye777 avatar Nov 16 '23 07:11 bruceye777

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


A colleague of mine reported this error when using Safari. He changed it to Chrome.

Issues-translate-bot avatar Nov 16 '23 07:11 Issues-translate-bot

https://github.com/suoaao/affordable-openai

The self-reverse proxy can still be used after one iteration.

suoaao avatar Nov 16 '23 07:11 suoaao

I don't think its browser dependent. The block is happening at open ai which means its blocked after vercel sends the data. I have tried edge, firefox and chrome, they are all blocked.

Below is a similar thread on the openai dev forums complaining about the same thing.

https://community.openai.com/t/api-access-failed-showing-cloudflare-block-page/506015/18

Potentially all vercel servers are blocked and and vercel has to negotiate with openai for renewed access.

jtv199 avatar Nov 16 '23 07:11 jtv199

that's proxy issue

works fine for me

image

proxy :

image

H0llyW00dzZ avatar Nov 16 '23 07:11 H0llyW00dzZ

e40d7713-567f-44bf-8ad4-06b82bc5ec48 只要这个cdn 域名能够正常访问 就没有问题了

bruceye777 avatar Nov 16 '23 08:11 bruceye777

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


e40d7713-567f-44bf-8ad4-06b82bc5ec48 As long as the cdn domain name can be accessed normally, there will be no problem.

Issues-translate-bot avatar Nov 16 '23 08:11 Issues-translate-bot

Currently, OpenAI has blocked API access for all regions of Hong Kong. Vercel will pass through the user's IP to OpenAI's API, and if your IP is not from an allowed country, you will not be able to access it.

enjin1314 avatar Nov 16 '23 10:11 enjin1314

Currently, OpenAI has blocked API access for all regions of Hong Kong. Vercel will pass through the user's IP to OpenAI's API, and if your IP is not from an allowed country, you will not be able to access it.

How Vercel pass through user's IP? This project seems to use Vercel to provide a proxy for those blocked IPs?

ymd45921 avatar Nov 16 '23 11:11 ymd45921

是不是CF的问题 https://github.com/noobnooc/noobnooc/discussions/9#discussioncomment-7587019

devyujie avatar Nov 16 '23 15:11 devyujie

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


Is it a problem with CF https://github.com/noobnooc/noobnooc/discussions/9#discussioncomment-7587019

Issues-translate-bot avatar Nov 16 '23 15:11 Issues-translate-bot

we have the same issue too, and I check my CNAME record seems not proxy enabled, The value is cname.vercel-dns.com, so more like vercel's issue.

starsead avatar Nov 17 '23 01:11 starsead

在vercel.json中加入"regions": ["sin1"],可指定使用新加坡节点,避免自动使用了香港。

pudd avatar Nov 17 '23 02:11 pudd

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


Add "regions": ["sin1"] to vercel.json to specify the Singapore node to avoid automatically using Hong Kong.

Issues-translate-bot avatar Nov 17 '23 02:11 Issues-translate-bot

在vercel.json中加入"regions": ["sin1"],可指定使用新加坡节点,避免自动使用了香港。

对的。https://github.com/noobnooc/noobnooc/discussions/9#discussioncomment-7590721

devyujie avatar Nov 17 '23 02:11 devyujie

在vercel.json中加入"regions": ["sin1"],可指定使用新加坡节点,避免自动使用了香港。

对的。noobnooc/noobnooc#9 (reply in thread)

测试可行

keney2023 avatar Nov 17 '23 02:11 keney2023

fixed by #3290

Yidadaa avatar Nov 17 '23 03:11 Yidadaa