GithubHelp home page GithubHelp logo

TypeError: fetch failed about chatgpt-demo HOT 3 CLOSED

anse-app avatar anse-app commented on May 16, 2024
TypeError: fetch failed

from chatgpt-demo.

Comments (3)

likui628 avatar likui628 commented on May 16, 2024

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

from chatgpt-demo.

ddiu8081 avatar ddiu8081 commented on May 16, 2024

Duplicate of #34

from chatgpt-demo.

allrobot avatar allrobot commented on May 16, 2024

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

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

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

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

> [email protected] 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)

from chatgpt-demo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.