This topic is locked

AI Agent Error: "TypeError: fetch failed" with Gemini API behind Proxy/VPN

8/13/2026 03:04:50
PHPRunner General questions
J
jackwood author

Generic
TypeError
fetch failed
hide details
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11:10)
at processTicksAndRejections (node:internal/process/task_queues:11:3)
at RunnerInstance.agentSendMessage (C:\Users\jajan\AppData\Local\PHPRunner113\app-11.2.44452\resources\app.asar\dist\out-tsc\runner\src\app\instance\instance.js:11:24)
at InstanceManager.runner (C:\Users\jajan\AppData\Local\PHPRunner113\app-11.2.44452\resources\app.asar\dist\out-tsc\runner\src\app\instance\manager.js:11:25)
at WebContents.<anonymous> (node:electron/js2c/browser_init:1:1)

2026-08-13 14_02_14-PHPRunner 11.3 Enterprise build 44452.png
2026-08-13 14_02_14-PHPRunner 11.3 Enterprise build 44452.png
ChatGPT 8/13/2026

It looks like you're encountering a TypeError related to a fetch operation while using PHPRunner. This error can occur for several reasons, and here are some steps you can take to troubleshoot and potentially resolve the issue:

  1. Check Network Connection: Ensure that your internet connection is stable. Sometimes, network issues can cause fetch requests to fail.


  2. Update PHPRunner: Make sure you are using the latest version of PHPRunner. Updates often include bug fixes and improvements that could resolve your issue.


  3. Clear Cache: If PHPRunner has a caching mechanism, try clearing the cache. Corrupted cached data can lead to unexpected errors.


  4. Check for Firewall/Antivirus Interference: Sometimes, firewalls or antivirus software can block network requests. Make sure that PHPRunner has the necessary permissions to make network requests.


  5. Review Code Changes: If you recently made changes to your project or the underlying code, review them to ensure that they're correct and that there are no issues with the API endpoints or other network calls.


  6. Examine Dependencies: If your project relies on external APIs or services, make sure they are up and running. A failure on the server-side can also lead to fetch issues.


  7. Error Logging: If possible, enable error logging in PHPRunner to get more detailed information about what might be causing the fetch to fail.


  8. Consult Documentation/Support: Check the PHPRunner documentation for any known issues or troubleshooting tips. You may also want to reach out to their support team or community forums for assistance.



If none of these steps resolve your issue, please provide additional context about when the error occurs (e.g., during a specific operation, after a particular action, etc.), and I'll do my best to help further.

J
jackwood author 8/13/2026

Hi Sergey / PHPRunner Team,

I am testing the new AI Agent feature in PHPRunner 11 (v11.2.44452) configured with Google Gemini API, but I encounter a fetch failed error whenever I attempt to send a message.

Here are my setup details:

  • PHPRunner Version: 11.2.44452
  • AI Provider: Google Gemini API
  • Network: Windows environment operating behind a Proxy / VPN.

Error Stack Trace:

Generic
TypeError
fetch failed
hide details
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11:10)
at processTicksAndRejections (node:internal/process/task_queues:11:3)
at RunnerInstance.agentSendMessage (C:\Users\jajan\AppData\Local\PHPRunner113\app-11.2.44452\resources\app.asar\dist\out-tsc\runner\src\app\instance\instance.js:11:24)
at InstanceManager.runner (C:\Users\jajan\AppData\Local\PHPRunner113\app-11.2.44452\resources\app.asar\dist\out-tsc\runner\src\app\instance\manager.js:11:25)
at WebContents.<anonymous> (node:electron/js2c/browser_init:1:1)

Analysis:
It appears that the underlying Node.js (undici fetch) module running inside the Electron app is not routing outbound HTTP requests through the system's active Proxy/VPN.

Questions:

  1. Is there an officially supported parameter or setting to configure HTTP_PROXY / HTTPS_PROXY for the built-in AI runner?
  2. Are there plans to make Node's fetch inherit Windows system proxy settings natively in upcoming updates?

Any workaround or guidance on this would be greatly appreciated!

Sergey Kornilov admin 8/13/2026

You need to contact support directly with this, this forum is a member-to-member self help area.