Http requests repeating

I have a rule that makes a few Smartthings API requests to get various device status. Since June 13th, 2025, one of the requests occasionally is repeated many times in the log (> 10 times, each with status = 200) and then rule execution stalls for several minutes and the rule finally progresses to completion. Heres some snips from the log:

(this repeats several more times…)

then finally does it a few more times with a long time gap, and then the rule proceeds normally:

What does the rest of the rule look like?

Here’s the full rule screenshot … I should note that when variable $NotifyText changes, it triggers another rule to send an notification via the ST API

Are you referring to the rule Check Lights and locks VIII?

I pulled system logs looking for similar outbound HTTP requests from your log screenshots and it matched the rule ID associated with that rule name… and that rule configuration looks like the rule screenshot you shared.

But when I check the logs for the past ~3 days I’m not seeing the behavior you mentioned.

The logs for those that outbound URL seem to be spread out without close repetition or overlapping timestamps (CDT). :thinking:

2025-06-19 09:20:28.661  
2025-06-19 06:01:19.068  
2025-06-19 00:03:02.256  
2025-06-18 21:29:02.785  
2025-06-18 16:04:16.507  
2025-06-18 14:48:10.832  
2025-06-18 11:43:15.772  
2025-06-18 06:30:34.493  
2025-06-17 22:22:42.986  
2025-06-17 22:22:11.224  
2025-06-17 20:27:36.603  
2025-06-17 12:33:39.566  
2025-06-17 08:48:26.888  
2025-06-16 22:44:14.477  
2025-06-16 22:29:59.837  
2025-06-16 17:40:04.632  

You had mentioned that it was since June 13th so I interpreted that to mean that it has consistently been an issue since that date, but did you perhaps mean that there was a timeframe around June 13th when the issue occurred?

There was a massive widespread outage with Google, AWS, and Cloudflare that lasted a few hours, so if it was around the 12th-13th but isn’t occurring anymore, I suspect it could have been fallout related to that event.

Yes, that’s the rule…It had been working great until last Friday night. The log I shared in the initial post was from 1:03am EDT this morning (6/19).
As is evident by the name of the rule, I have rewritten it several times over the years :slight_smile: … I have another Smartthings automation that catches if the virtual switch that triggers this rule remains on > 15 minutes, which would prompt me to check logs for bugs etc.

and most of the times when the rule runs, it runs normally and finishes quickly. But occasionally it’s been getting stuck with this repeated http request behavior since this past Friday.

It seems to be something with the step that sets the $IG based on the Iron Gate - contact attribute that’s failing.

It almost seems like it’s failing to retrieve the contact attribute state, so the actions after the preceding ‘pause’ are retried (which makes sense since they are enqueued as retryable tasks), but it looks like we’re missing the relevant error catching / logging that would give us the insights we need.

I’ve made note of the issue so I can take a closer look when I’m back in the office next week.

1 Like

Thank you Josh! Let me know if you want me to make any modifications to the rule to help with the debug.

And thank you for the amazing care and support you give to this platform!