网络错误:连接被拒绝
#113
Replies: 2 comments
-
开了全局代理了就不用单独设置代理了吧? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Duplicate to #111 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
clash开启了全局代理,.env的代理地址填了http://127.0.0.1:7890。跑的时候出现以下错误:
TypeError
An error occurred.
fetch failed
C:\Users\56410\Documents\Nodejs\chatgpt-demo\C:\Users\56410\Documents\Nodejs\chatgpt-demo\node_modules\undici\index.js:109:13
Stack Trace
TypeError: fetch failed
at Proxy.fetch (C:\Users\56410\Documents\Nodejs\chatgpt-demo\node_modules\undici\index.js:109:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Module.post (C:\Users\56410\Documents\Nodejs\chatgpt-demo\src\pages\api\generate.ts:19:20)
at async call (file:///C:/Users/56410/Documents/Nodejs/chatgpt-demo/node_modules/astro/dist/core/endpoint/index.js:71:20)
at async call (file:///C:/Users/56410/Documents/Nodejs/chatgpt-demo/node_modules/astro/dist/core/endpoint/dev/index.js:15:10)
at async handleRoute (file:///C:/Users/56410/Documents/Nodejs/chatgpt-demo/node_modules/astro/dist/vite-plugin-astro-server/route.js:117:20)
at async run (file:///C:/Users/56410/Documents/Nodejs/chatgpt-demo/node_modules/astro/dist/vite-plugin-astro-server/request.js:46:14)
at async runWithErrorHandling (file:///C:/Users/56410/Documents/Nodejs/chatgpt-demo/node_modules/astro/dist/vite-plugin-astro-server/controller.js:65:5)
at async handleRequest (file:///C:/Users/56410/Documents/Nodejs/chatgpt-demo/node_modules/astro/dist/vite-plugin-astro-server/request.js:40:3)
Cause
{
"errno": -4078,
"code": "ECONNREFUSED",
"syscall": "connect",
"address": "127.0.0.1",
"port": 7890
}
Reproduction
null
System Info
Used Package Manager
npm
Validations
Beta Was this translation helpful? Give feedback.
All reactions