Skip to content
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] 🐛 无法使用api #467

Open
1 task done
Tomywang999 opened this issue Aug 28, 2024 · 12 comments
Open
1 task done

[Bug] 🐛 无法使用api #467

Tomywang999 opened this issue Aug 28, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@Tomywang999
Copy link

Tomywang999 commented Aug 28, 2024

Confirmations

  • 我确认我已经仔细阅读了 Wiki, 并且已经搜索了已有的 issue, 并没有类似问题。

Describe the bug

使用Cloudfalre Worker 部署后,网页版正常使用,api一直显示:User needs to solve CAPTCHA to continue.

Steps to reproduce

如上

Expected behavior

正常使用api

Screenshots

Screenshot 2024-08-28 at 9 41 15 AM Screenshot 2024-08-28 at 9 45 39 AM

Deploy

Cloudflare Worker

UserId

makox8%7C2%7Cfop%7C0%7C1699

OS & Version

macOS 14.6.1

Browser & Version

Chrome 127.0.6533.120

GoProxiBingAI Version

v2.4.4

Additional context

No response

@Tomywang999 Tomywang999 added the bug Something isn't working label Aug 28, 2024
@Tomywang999 Tomywang999 changed the title [Bug] 🐛 [Bug] 🐛 无法使用api Aug 28, 2024
@zhanghanzhe666
Copy link

目前我用cf的pages部署后也是这样,根据“User needs to solve CAPTCHA to continue.”表示用户需要通过人机验证,建议更换人机验证服务器

@ikmfoundation
Copy link

用自己部署的bypass server可以 也是可以cf部署

@marcomozart
Copy link

调用 API 通过 CF 也会触发 CAPTCHA。也许可以在调用 API 之前实现绕过服务器?

@marcomozart
Copy link

绕过服务器在调用 API 时未被使用。这是主要问题。

@Harry-zklcdc
Copy link
Owner

绕过服务器在调用 API 时未被使用。这是主要问题。

咱可以看了代码,在发言不?

实现代码:https://github.com/Harry-zklcdc/bing-lib/blob/491ac86e880c911b50b8e853279f7c48026760c6/chat.go#L696

CF 部署不易绕过,这是已知问题,因为 CF 的 IP 池已经都是高风险了

@marcomozart
Copy link

也许一个更简单的解决方案是使用 Cloudflare Worker 捕获 API 请求,并使用 fetch 将其发送到绕过服务器。将解决方案实现到完整代码中可能太难了

@marcomozart
Copy link

我觉得这是一个难题,所以不需要着急。

@Harry-zklcdc
Copy link
Owner

CF 的版本的的代码在这

const cctCookie = options.cookie + '; ' + (await getCctCookie(options));

@Harry-zklcdc
Copy link
Owner

可能和 #470 有关,在尝试一下

@SokWith
Copy link

SokWith commented Sep 25, 2024

似乎现在cct也挑网络出口了,我的两个cct服务器:

https://cct.nbing.eu.org

https://cctb.pages.dev

似乎由于经常引用,被cf缓存到中国区,造成获得的cct对API无效了。刚才切换了出口部署,就又可以了。

可以试试

image

@reccea
Copy link

reccea commented Oct 18, 2024

似乎现在cct也挑网络出口了,我的两个cct服务器:

https://cct.nbing.eu.org

https://cctb.pages.dev

似乎由于经常引用,被cf缓存到中国区,造成获得的cct对API无效了。刚才切换了出口部署,就又可以了。

可以试试

image

cct这个要怎么用?能当api?

@SokWith
Copy link

SokWith commented Oct 19, 2024

cct这个要怎么用?能当api?

cct服务器就是bypass服务器,我简化了一下可以直接GET使用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants