-
Notifications
You must be signed in to change notification settings - Fork 60.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 请问vercel是不是被openai封ip了?用vercel部署的网页提交问题就报“Sorry, you have been blocked”,有什么办法解决么? #3286
Comments
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?
Feedback Instructions Please enter x in the square brackets below to indicate that you already know the relevant content.
Describe the problem How to reproduce screenshot Some necessary information
|
I am having the same issue. Also doesn't work when deployed to vercel. Works in codepod and I assume local. |
我一个同事用用safari,报这个错,换成chrome好了 |
A colleague of mine reported this error when using Safari. He changed it to Chrome. |
https://github.com/suoaao/affordable-openai The self-reverse proxy can still be used after one iteration. |
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. |
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? |
Is it a problem with CF noobnooc/noobnooc#9 (reply in thread) |
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. |
在vercel.json中加入"regions": ["sin1"],可指定使用新加坡节点,避免自动使用了香港。 |
Add "regions": ["sin1"] to vercel.json to specify the Singapore node to avoid automatically using Hong Kong. |
|
测试可行 |
fixed by #3290 |
所有被此问题困扰的人,请手动更新代码,与主线保持同步。 |
Anyone who is troubled by this issue, please update the code manually to keep in sync with the mainline. |
遇到同样的问题,用香港 IP 不可以但是美国的没有问题,看起来是我们自己直接请求的 OpenAI,屏蔽的是客户端的 IP。 但疑惑的是修改 vercel 节点也可以生效,就是说 vercel 转发了请求?既然转发了,那为啥非香港 IP 也可以访问呢,困惑 |
Encountered the same problem, using the Hong Kong IP cannot work but the US has no problem. It seems that we directly requested OpenAI ourselves, and the client's IP is blocked. But what is confusing is that modifying the vercel node can also take effect. Does it mean that vercel forwards the request? Since it is forwarded, why can non-Hong Kong IPs be accessed? Confused |
修改后仍然无效,尝试了sin1 和 cdg1:
|
修改后仍然无效,尝试了sin1 和 cdg1:
|
modify /app/api/config/route.js:
|
![]() |
感觉变慢了,是屏蔽香港服务器的问题吗 |
It feels slow. Is it a problem of blocking the Hong Kong server? |
yes, for me work's fine using singapore region (close to my country) |
反馈须知
请在下方中括号内输入 x 来表示你已经知晓相关内容。
描述问题
[Bug] 请问vercel是不是被openai封ip了有什么办法解决么?
如何复现
用vercel部署的网页提交问题就报“Sorry, you have been blocked”,
截图
![图片](https://private-user-images.githubusercontent.com/134574829/283352570-d7e21887-ac0f-4c5e-85aa-e9c52b791ec6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODgyODEsIm5iZiI6MTczODk4Nzk4MSwicGF0aCI6Ii8xMzQ1NzQ4MjkvMjgzMzUyNTcwLWQ3ZTIxODg3LWFjMGYtNGM1ZS04NWFhLWU5YzUyYjc5MWVjNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwNDEzMDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00OTYxZGUyMzM5MGRkOThkM2NkOWI1MGVmNTJiZmUzNDRjMzM1MTAyMGNkNDU1MDdkMjFmNDZlYTliNjJiYmQxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ckJfDZoBqTBOyilnsQvWMa7hBcGtDrva9esNw-W0hwc)
请在此提供控制台截图、屏幕截图或者服务端的 log 截图。
一些必要的信息
The text was updated successfully, but these errors were encountered: