NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] 无法正常请求

Open WudaxStudio opened this issue 3 years ago • 48 comments

Describe the bug 无法正常请求内容,出现以下内容

{
  "error": {
    "code": 502,
    "message": "Bad gateway.",
    "param": null,
    "type": "cf_bad_gateway"
  }
}

或者出现这个问题

{
  "error": {
    "message": "Internal server error",
    "type": "auth_subrequest_error",
    "param": null,
    "code": "internal_error"
  }
}

之前还是可以正常访问的,我这里使用的是vercel进行部署的

WudaxStudio avatar Oct 20 '23 02:10 WudaxStudio

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


Title: [Bug] Unable to request normally

Issues-translate-bot avatar Oct 20 '23 02:10 Issues-translate-bot

[09:59:05.656] Running build in Washington, D.C., USA (East) – iad1 (Hive) [09:59:06.327] Cloning github.com/WudaxStudio/ChatGPT-Next-Web (Branch: dependabot/npm_and_yarn/rehype-highlight-7.0.0, Commit: 2f09789) [09:59:06.844] Cloning completed: 515.896ms [09:59:14.998] Restored build cache [09:59:15.071] Running "vercel build" [09:59:15.517] Vercel CLI 32.4.1 [09:59:15.875] Installing dependencies... [09:59:16.174] yarn install v1.22.17 [09:59:16.247] [1/4] Resolving packages... [09:59:16.526] [2/4] Fetching packages... [09:59:41.605] [3/4] Linking dependencies... [09:59:47.572] [4/4] Building fresh packages... [09:59:47.596] $ husky install [09:59:47.680] husky - Git hooks installed [09:59:47.686] Done in 31.52s. [09:59:47.719] Detected Next.js version: 13.4.9 [09:59:47.721] Running "yarn run build" [09:59:47.918] yarn run v1.22.17 [09:59:47.948] $ cross-env BUILD_MODE=standalone next build [09:59:48.534] [Next] build mode standalone [09:59:48.535] [Next] build with chunk: true [09:59:48.548] - warn You have enabled experimental feature (forceSwcTransforms) in next.config.mjs. [09:59:48.548] - warn Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk. [09:59:48.548] [09:59:48.648] - info Creating an optimized production build... [10:00:34.707] - info Compiled successfully [10:00:34.709] - info Linting and checking validity of types... [10:00:39.858] Failed to compile. [10:00:39.858] [10:00:39.859] ./app/components/markdown.tsx:109:11 [10:00:39.859] Type error: Type '(options?: Readonly | null | undefined) => (tree: Root, file: VFile) => undefined' is not assignable to type 'Plugin<any[], any, any>'. [10:00:39.859] Type '(tree: Root, file: VFile) => undefined' is not assignable to type 'void | Transformer<any, any>'. [10:00:39.859] Type '(tree: Root, file: VFile) => undefined' is not assignable to type 'Transformer<any, any>'. [10:00:39.859] Types of parameters 'file' and 'file' are incompatible. [10:00:39.859] Type 'import("/vercel/path0/node_modules/vfile/lib/index").VFile' is not assignable to type 'import("/vercel/path0/node_modules/rehype-highlight/node_modules/vfile/lib/index").VFile'. [10:00:39.859] Types of property 'messages' are incompatible. [10:00:39.859] Type 'import("/vercel/path0/node_modules/vfile-message/lib/index").VFileMessage[]' is not assignable to type 'import("/vercel/path0/node_modules/rehype-highlight/node_modules/vfile-message/lib/index").VFileMessage[]'. [10:00:39.859] Type 'VFileMessage' is missing the following properties from type 'VFileMessage': ancestors, place [10:00:39.859] [10:00:39.860]   107 |  RehypeKatex, [10:00:39.860]   108 |  [ [10:00:39.860] > 109 |  RehypeHighlight, [10:00:39.860]   |  ^ [10:00:39.860]   110 |  { [10:00:39.860]   111 |  detect: false, [10:00:39.860]   112 |  ignoreMissing: true, [10:00:39.995] error Command failed with exit code 1. [10:00:39.995] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. [10:00:40.013] Error: Command "yarn run build" exited with 1

编译时出现以上错误,在vercel中

WudaxStudio avatar Oct 20 '23 02:10 WudaxStudio

{ "error": { "code": 502, "message": "Bad gateway.", "param": null, "type": "cf_bad_gateway" } } Today morning too

zhoumingwu avatar Oct 20 '23 02:10 zhoumingwu

same situation.

xuezihe avatar Oct 20 '23 02:10 xuezihe

seem like it was the openai's Service response

planktonzp avatar Oct 20 '23 02:10 planktonzp

我今天也发生了这样的情况,各位有什么思路吗?

tab3241 avatar Oct 20 '23 02:10 tab3241

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


This happened to me today, do you have any ideas?

Issues-translate-bot avatar Oct 20 '23 02:10 Issues-translate-bot

估计是仓库主的vercel流量用完了哈哈哈,建议仓库主附一个教程教大家利用好vercel每个月的100g反向代理流量(或者写进项目里面)

orangesummertime avatar Oct 20 '23 02:10 orangesummertime

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


It is estimated that the warehouse owner has run out of vercel traffic, hahaha. It is recommended that the warehouse owner attach a tutorial to teach everyone to make good use of the 100g reverse proxy traffic of vercel every month (or write it into the project)

Issues-translate-bot avatar Oct 20 '23 02:10 Issues-translate-bot

我也一样,怎么解决呀?》

neversettle2018 avatar Oct 20 '23 02:10 neversettle2018

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


Me too, how to solve it? 》

Issues-translate-bot avatar Oct 20 '23 02:10 Issues-translate-bot

我用docker 部署的,得到的响应是cloudflare的报错页。 The web server reported a bad gateway error.

zenghx avatar Oct 20 '23 02:10 zenghx

me too

luckyboy101 avatar Oct 20 '23 02:10 luckyboy101

image OpenAI service is down, everyone please wait for repairs.

enjin1314 avatar Oct 20 '23 02:10 enjin1314

原来如此

tab3241 avatar Oct 20 '23 02:10 tab3241

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


I see

Issues-translate-bot avatar Oct 20 '23 02:10 Issues-translate-bot

imageOpenAI服务已关闭,大家请等待维修。

这个页面的连接能发一下吗?

tab3241 avatar Oct 20 '23 02:10 tab3241

Openai server maintenance, but azure's gpt service seems to be available.

RuthlessXdream avatar Oct 20 '23 02:10 RuthlessXdream

imageOpenAI服务已关闭,大家请等待维修。

这个页面的连接能发一下吗?

https://status.openai.com/

enjin1314 avatar Oct 20 '23 02:10 enjin1314

https://status.openai.com/

感谢!

tab3241 avatar Oct 20 '23 02:10 tab3241