void icon indicating copy to clipboard operation
void copied to clipboard

Error: exception TypeError: fetch failed sending request

Open liyajie920112 opened this issue 7 months ago • 8 comments

  1. 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

  2. gemini apikey chat appears Error Error: exception TypeError: fetch failed sending request

Image

liyajie920112 avatar May 13 '25 03:05 liyajie920112

你解决这个问题了吗

Crescent-cc avatar May 17 '25 07:05 Crescent-cc

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.

AlexJ-StL avatar May 19 '25 10:05 AlexJ-StL

Claude 3.5 appears to be working. So, the problem is with Gemini 2.5 Pr & Flash, but not Claude 3.5 Sonnet.

AlexJ-StL avatar May 19 '25 11:05 AlexJ-StL

same issue here, only gemini api affected

vyrti avatar May 21 '25 08:05 vyrti

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.

AlexJ-StL avatar May 21 '25 09:05 AlexJ-StL

same issue, same gemini

a652 avatar Jun 26 '25 09:06 a652

Same issue, same model, same everything except I'm on Windows_NT x64 10.0.26100. Any progresses?

Myriad4Link avatar Sep 04 '25 00:09 Myriad4Link

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.

Myriad4Link avatar Sep 04 '25 03:09 Myriad4Link