[RESOLVED] HTTP query failing after version 26177
-
Hi @toggledbits
The HTTP query below worked perfectly in Set Reaction
https://api.open-meteo.com/v1/forecast?latitude=9.0714&longitude=-79.3834&daily=precipitation_sum&timezone=America%2FChicago&past_days=6&forecast_days=0And when performed directly in the browser, it returns the information correctly
However, now with the new version 26177, the response is null.
Log.
[latest-26177]2026-06-28T00:38:17.105Z <OWMWeatherController:null> Module OWMWeatherController v25268 [latest-26177]2026-06-28T00:38:17.113Z <NUTController:null> Module NUTController v25026 [latest-26177]2026-06-28T00:38:17.119Z <SystemController:null> Module SystemController v25330 [latest-26177]2026-06-28T00:38:17.191Z <HassController:ERR> HassController#hass implementation data has no/empty mapping section; supplying default mapping [latest-26177]2026-06-28T00:38:17.234Z <DynamicGroupController:WARN> DynamicGroupController#groups group dgc_Device_IMOTION attempts to include entity hubitat>50; not found [latest-26177]2026-06-28T00:38:17.526Z <Engine:ERR> Engine#1: error evaluating expression HistShow: [ReferenceError] Invalid scope in reference to member daily of (object)null [-] [latest-26177]2026-06-28T00:38:17.526Z <Engine:ERR> Engine#1: expression: join((each i in 5..0 : format( "{0} {1} {2:4.1f}mm<br>", substr(HistPrecipitation.daily.time[i],8,2), if HistPrecipitation.daily.precipitation_sum[i] <= 2 then "💦" else "🌧️" endif, HistPrecipitation.daily.precipitation_sum[i])), " ") [latest-26177]2026-06-28T00:38:17.526Z <Engine:CRIT> ReferenceError: Invalid scope in reference to member daily of (object)null [-] ReferenceError: Invalid scope in reference to member daily of (object)null at _run (/home/wilson/reactor/common/lexp.js:1611:31) at _run (/home/wilson/reactor/common/lexp.js:1605:33) at _run (/home/wilson/reactor/common/lexp.js:1605:33) at /home/wilson/reactor/common/lexp.js:1702:33 at Array.forEach (<anonymous>) at _run (/home/wilson/reactor/common/lexp.js:1701:28) at /home/wilson/reactor/common/lexp.js:1702:33 at Array.forEach (<anonymous>) at _run (/home/wilson/reactor/common/lexp.js:1701:28) at _run (/home/wilson/reactor/common/lexp.js:1725:41) [latest-26177]2026-06-28T00:38:17.530Z <Engine:ERR> Engine#1: error evaluating expression HistLastRain: [ReferenceError] Invalid scope in reference to member daily of (object)null [-] [latest-26177]2026-06-28T00:38:17.530Z <Engine:ERR> Engine#1: expression: if HistPrecipitation.daily.precipitation_sum[5] > 2 then format( "{0} {1} {2:4.1f}mm", substr(HistPrecipitation.daily.time[5],8,2), "🌧️", HistPrecipitation.daily.precipitation_sum[5]) else HistLastRain endif [latest-26177]2026-06-28T00:38:17.530Z <Engine:CRIT> ReferenceError: Invalid scope in reference to member daily of (object)null [-] ReferenceError: Invalid scope in reference to member daily of (object)null at _run (/home/wilson/reactor/common/lexp.js:1611:31) at _run (/home/wilson/reactor/common/lexp.js:1605:33) at _run (/home/wilson/reactor/common/lexp.js:1605:33) at _run (/home/wilson/reactor/common/lexp.js:1436:34) at _run (/home/wilson/reactor/common/lexp.js:1623:26) at /home/wilson/reactor/common/lexp.js:1426:29 at Array.forEach (<anonymous>) at _run (/home/wilson/reactor/common/lexp.js:1425:28) at Object.run (/home/wilson/reactor/common/lexp.js:1855:24) at Engine._eval_expr (/home/wilson/reactor/server/lib/Engine.js:1235:165) [latest-26177]2026-06-28T00:38:17.870Z <NUTController:ERR> NUTController#nut unable to establish communication with "192.168.1.6":3493: [Error] connect ECONNREFUSED 192.168.1.6:3493 [-] [latest-26177]2026-06-28T00:38:17.935Z <app:ERR> Trapped unhandled Promise rejection: [FetchError] Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/modes?access_token=e6d0afa6-caad-4f01-a0f3-e> [latest-26177]2026-06-28T00:38:17.935Z <app:CRIT> FetchError: Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/modes?access_token=e6d0afa6-caad-4f01-a0f3-e27bb8098221: Premature close [-] FetchError: Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/modes?access_token=e6d0afa6-caad-4f01-a0f3-e27bb8098221: Premature close at PassThrough.<anonymous> (/home/wilson/reactor/node_modules/node-fetch/lib/index.js:217:52) at PassThrough.emit (node:events:509:28) -
Your post should ideally indicate if your runtime is bare-metal or docker, and the OS and architecture being used, because I can't keep that kind of info in memory. If you're bare-metal, make sure you've updated packages
npm run deps.Most of the errors you are showing are expression errors downstream of the HTTP request, so that's not really showing me anything useful. The last two lines are suspicious, though... NUTController isn't able to establish a connection with the NUT service, saying that the server is reachable but it refused the connection. Right after is an attempted query apparently to a Hubitat hub that fails with the connection closing before the response is complete. This looks more to me like you're having other network-related issues.
While you say you can run successful queries from the browser, if that browser isn't on the same IP address as the Reactor instance, it's not a great test of network reachability for this. What you need to do is run a
curlquery from the Reactor host system; if that's a docker container, you need to attach your console to the container and runcurlfrom within the container (e.g.docker exec -it reactor /bin/sh).I am, of course, running 26177 for my house, and use a lot of HTTP requests (e.g. most of my Blue Iris control). No issues for me. I am able to run your query URL from an HTTP Request action and get a valid response to a global variable (advanced response format shown here):
{"ok":true,"status":200,"message":"OK","data":{"latitude":9.033392,"longitude":-79.41177,"generationtime_ms":0.023484230041503906,"utc_offset_seconds":-18000,"timezone":"America/Chicago","timezone_abbreviation":"GMT-5","elevation":12,"daily_units":{"time":"iso8601","precipitation_sum":"mm"},"daily":{"time":["2026-06-22","2026-06-23","2026-06-24","2026-06-25","2026-06-26","2026-06-27"],"precipitation_sum":[16.6,6.1,2.2,4.4,8.2,0.1]}}}









