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

TypeError: fetch failed #1

Closed
wowkingah opened this issue Apr 9, 2023 · 1 comment
Closed

TypeError: fetch failed #1

wowkingah opened this issue Apr 9, 2023 · 1 comment

Comments

@wowkingah
Copy link

wowkingah commented Apr 9, 2023

环境

  • node:v18.15.0
  • pnpm:5.4

配置

Gitlab - 项目 - 设置 - Webhooks - 网址 - http://xxx.com/gitlab-review/webhook?projectId=xx&token=xxxx&language=ZH(xx 为实际配置)

问题描述

点击 测试 - Merge Requests Events 时,POST 请求返回 200,即 Hook executed successfully: HTTP 200,但 node 会报错,报错信息如下。

报错日志

TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11413:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at file:///Users/wowking/Documents/git/gitlab-review-chatgpt/node_modules/.pnpm/[email protected]/node_modules/chatgpt/src/chatgpt-api.ts:233:25 {
  cause: ConnectTimeoutError: Connect Timeout Error
      at onConnectTimeout (node:internal/deps/undici/undici:8380:28)
      at node:internal/deps/undici/undici:8338:50
      at Immediate._onImmediate (node:internal/deps/undici/undici:8369:13)
      at processImmediate (node:internal/timers:476:21) {
    code: 'UND_ERR_CONNECT_TIMEOUT'
  }
}

以上,求大神指导。

@jianxiaoBai
Copy link
Owner

jianxiaoBai commented Apr 24, 2023

你看看这个 issue @wowkingah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants