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 #54

Closed
hieiip1203 opened this issue Mar 4, 2023 · 3 comments
Closed

TypeError: fetch failed #54

hieiip1203 opened this issue Mar 4, 2023 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@hieiip1203
Copy link

image
请问这个报错是什么意思

@likui628
Copy link
Contributor

likui628 commented Mar 4, 2023

有个PR可以指定代理,应该是GFW的问题

@ddiu8081 ddiu8081 added the question Further information is requested label Mar 4, 2023
@ddiu8081
Copy link
Member

ddiu8081 commented Mar 4, 2023

Duplicate of #34

@ddiu8081 ddiu8081 marked this as a duplicate of #34 Mar 4, 2023
@ddiu8081 ddiu8081 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2023
@ddiu8081 ddiu8081 added duplicate This issue or pull request already exists and removed question Further information is requested labels Mar 4, 2023
@allrobot
Copy link

allrobot commented Mar 4, 2023

有个PR可以指定代理,应该是GFW的问题

我在.env填https://chat.duti.tech/api/conversation或者https://gpt.pawan.krd/backend-api/conversation

该报错还是报错。。。。
CMD报错信息如下:

G:\[Notes]\chatgpt-demo>npm run dev

> novel-gpt@0.0.1 dev
> astro dev

   astro  v2.0.17 started in 78ms

  ┃ Local    http://localhost:3000/
  ┃ Network  use --host to expose

 error   invalid url
  File:
    G:\[Notes]\chatgpt-demo\G:\[Notes]\chatgpt-demo\node_modules\undici\lib\core\util.js:111:11
  Stacktrace:
InvalidArgumentError: invalid url
    at Object.parseOrigin (G:\[Notes]\chatgpt-demo\node_modules\undici\lib\core\util.js:111:11)
    at new Client (G:\[Notes]\chatgpt-demo\node_modules\undici\lib\client.js:211:23)
    at new ProxyAgent (G:\[Notes]\chatgpt-demo\node_modules\undici\lib\proxy-agent.js:72:21)
    at Module.post (G:\[Notes]\chatgpt-demo\src\pages\api\generate.ts:17:33)
    at async call (file:///G:/[Notes]/chatgpt-demo/node_modules/astro/dist/core/endpoint/index.js:71:20)
    at async call (file:///G:/[Notes]/chatgpt-demo/node_modules/astro/dist/core/endpoint/dev/index.js:15:10)
    at async handleRoute (file:///G:/[Notes]/chatgpt-demo/node_modules/astro/dist/vite-plugin-astro-server/route.js:117:20)
    at async run (file:///G:/[Notes]/chatgpt-demo/node_modules/astro/dist/vite-plugin-astro-server/request.js:46:14)
    at async runWithErrorHandling (file:///G:/[Notes]/chatgpt-demo/node_modules/astro/dist/vite-plugin-astro-server/controller.js:65:5)
    at async handleRequest (file:///G:/[Notes]/chatgpt-demo/node_modules/astro/dist/vite-plugin-astro-server/request.js:40:3)

@ddiu8081 ddiu8081 changed the title 这个报错很难受 TypeError: fetch failed Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants