weaigc / bingo

Bingo,一个让你呼吸顺畅 New Bing。
https://bing.github1s.tk
MIT License
2.86k stars 1.23k forks source link

Unknown error BUG #39

Closed triggered96 closed 1 year ago

triggered96 commented 1 year ago

我尝试通过node启动

git clone https://github.com/weaigc/bingo.git
npm i # 推荐使用 pnpm i
npm run build
npm run start
TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "x-forwarded-for"
    at ClientRequest.setHeader (node:_http_outgoing:647:3)
    at new ClientRequest (node:_http_client:284:14)
    at request (node:https:357:10)
    at initAsClient (/opt/bingo/node_modules/ws/lib/websocket.js:843:28)
    at new WebSocket (/opt/bingo/node_modules/ws/lib/websocket.js:85:7)
    at handler (/opt/bingo/.next/server/pages/api/sydney.js:553:16)
    at /opt/bingo/node_modules/next/dist/server/api-utils/node.js:463:16
    at /opt/bingo/node_modules/next/dist/server/lib/trace/tracer.js:117:36
    at NoopContextManager.with (/opt/bingo/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7057)
    at ContextAPI.with (/opt/bingo/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:516) {
  code: 'ERR_HTTP_INVALID_HEADER_VALUE'

或者通过docker方式启动。

但是发现打开页面后,当输入提示词时,页面显示 Unknown error

1 2
triggered96 commented 1 year ago

我已经确保BING_HEADER 时可用的。 并且我的环境https://www.bing.com/search?q=Bing+AI&showconv=1&FORM=hpcodx 在上面也是可以访问并且正常提问的。

weaigc commented 1 year ago

@triggered96 不要用隐身模式

triggered96 commented 1 year ago

npm run start

@triggered96 不要用隐身模式

不用隐身模式一样的错误. 我尝试了很多遍了

weaigc commented 1 year ago

npm run start

@triggered96 不要用隐身模式

不用隐身模式一样的错误. 我尝试了很多遍了 @triggered96 出现这个错误的根本原因是 cookie 被禁用了。你可以看看 request headers 里面有没有一个叫 BING_IP 的 cookie