Error: exception TypeError: fetch failed sending request
-
VSCode Version: 1.99.30030 Void Version: 1.3.6 Commit: d09a41acd328cdec7970eefef8f78b1c0e72ffca Date: 2025-05-12T18:11:36.641Z Electron: 34.3.2 ElectronBuildId: undefined Chromium: 132.0.6834.210 Node.js: 20.18.3 V8: 13.2.152.41-electron.0 OS: Darwin x64 24.4.0
-
gemini apikey chat appears Error Error: exception TypeError: fetch failed sending request
你解决这个问题了吗
VSCode Version: 1.99.30034 (system setup) Void Version: 1.3.10 Date: 2025-05-16T20:35:23.913Z Electron: 34.3.2 ElectronBuildId: undefined Chromium: 132.0.6834.210 Node.js: 20.18.3 V8: 13.2.152.41-electron.0 OS: Windows_NT x64 10.0.26100
I am also having this same problem when trying to use Gemini 2.5 Flash Preview. I haven't tried any other model yet. I will report back if it appears to be Gemini only.
Claude 3.5 appears to be working. So, the problem is with Gemini 2.5 Pr & Flash, but not Claude 3.5 Sonnet.
same issue here, only gemini api affected
As of yesterday I was able, without explanation, able to use Gemini 2.5 Flash Preview 04-17. I am just about to start a new project so I am going to give Gemini 2.5 Pro a shot.
same issue, same gemini
Same issue, same model, same everything except I'm on Windows_NT x64 10.0.26100. Any progresses?
Hi folks. Here's a workaround if you are in China or believe the error is caused by local network access restrictions. Refer to the issue thread here for reference.
In simple words, either turn on the TUN mode you are using for completely replace all network proxy configurations, or add a few lines in the very beginning of <your-void-installation-path>/resources/app/node_modules/genai/dist/node/index.js, after line 1 ('use strict';), append the following:
const { setGlobalDispatcher, ProxyAgent } = require('undici');
const proxyAddress = '<your-proxy-address>';
const proxyAgent = new ProxyAgent(proxyAddress);
setGlobalDispatcher(proxyAgent);
and this should work.