Fixing the jq parse error
If you encounter the following error while running the helmut-snapshot command:
jq: parse error: Invalid numeric literal at line 1, column 10this may be caused by a missing local proxy bypass configuration (no_proxy).
Without this configuration, requests to localhost may be routed through a corporate proxy instead of directly to the local service.
For detailed instructions on configuring proxy settings for both the host system and Docker, please refer to the article “Docker & Ubuntu Proxy”.
1. Verify the Current Proxy Configuration
Run the following command to check whether a no_proxy configuration is present:
env | egrep -i 'http_proxy|https_proxy|no_proxy'Example output:
https_proxy=http://proxy.company.de:8081
http_proxy=http://proxy.company.de:8081As shown above, no no_proxy entry is configured, meaning even local connections may be sent through the proxy.
2. Add a Local no_proxy Configuration
Create a profile script to define the local proxy bypass:
cat >/etc/profile.d/no_proxy_local.sh <<'EOF'
export NO_PROXY="127.0.0.1,localhost,::1"
export no_proxy="$NO_PROXY"
EOFThis ensures that connections to local services (localhost, 127.0.0.1, IPv6 ::1) bypass the proxy.
3. Apply the Configuration
Disconnect and reconnect your SSH session so the new environment variables are loaded.
4. Verify the Updated Configuration
Run the verification command again:
Expected output:
Once NO_PROXY / no_proxy is configured, the helmut-snapshot command should work correctly.