Proxyman
Proxyman copied to clipboard
The Proxyman manual setup script has a short timeout
Hi,
I've used the manual setup script for configuring the proxy for nodejs processes:
set -a 2>/dev/null || true; source "~/Library/Application Support/com.proxyman.NSProxy/app-data/proxyman_env_automatic_setup.sh"; set +a 2>/dev/null || true
The issue is -- traffic that goes through this script, is given 30 seconds for the completing the request. If by chance, the response takes more than 30 seconds to complete -- it fails the request with this exception:
[cause]: Headers Timeout Error
at Timeout.onParserTimeout [as callback] (/Applications/Proxyman.app/Contents/Frameworks/ProxymanCore.framework/Versions/A/Resources/overrides/js/node_modules/undici/lib/client.js:906:28)
at Timeout.onTimeout [as _onTimeout] (/Applications/Proxyman.app/Contents/Frameworks/ProxymanCore.framework/Versions/A/Resources/overrides/js/node_modules/undici/lib/timers.js:18:13)
at listOnTimeout (node:internal/timers:614:17)
at process.processTimers (node:internal/timers:549:7)
This timeout is not configurable, and it should be. For AI inference operations, 30 seconds timeout is too low.
@johnib let's try this beta build: https://download.proxyman.io/beta/Proxyman_5.24.0_Fix_timeout_nodejs_patching.dmg
I increased the timeout to 5 mins.