HomarrH
Homarr9mo ago
20 replies
vicary

Weather Widget - TRPCClientError: fetch failed

I am having the exact same behavior at 💬・get-helpTRPC Client Error - Weather widget cannot fetch data, but I am already at 1.20.0 the same issue still persist.

The widget never works since installation for like 99% of the time, it successfully fetched weather info for around 30 minutes after I changed the pi-hole integration from IP address to a local hostname. And then it starts failing again and never worked since.

Here is a list of things I tried:
1. Disabling pi-hole doesn't help, the query logs shows successful resolution to api.open-meteo.com
2. Fetching the URL within the container gives me HTTP 200 with an empty body, no connection errors.
3. Rebooting or restarting the homarr container doesn't help
Solution
Turns out it's Node's implementation of Happy Eyeballs (RFC 6555) is messing up normally working connections during a race between ipv4 and ipv6.

Adding the following env var removes the issue:
NODE_OPTIONS=--network-family-autoselection-attempt-timeout=500
Was this page helpful?