# Sleep() causes sendHttpGetRequest() to fail intermintently

**URL:** <https://community.openhab.org/t/sleep-causes-sendhttpgetrequest-to-fail-intermintently/160876>\
**Category:** Scripts & Rules\
**Created:** [December 15, 2024, 6:07pm UTC](https://community.openhab.org/t/sleep-causes-sendhttpgetrequest-to-fail-intermintently/160876 "2024-12-15T18:07:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hafniumzinc](https://community.openhab.org/letter_avatar_proxy/v4/letter/h/b9bd4f/32.png) [@hafniumzinc](https://community.openhab.org/u/hafniumzinc)\
**Post date:** [December 15, 2024, 7:51pm UTC](https://community.openhab.org/t/sleep-causes-sendhttpgetrequest-to-fail-intermintently/160876/3 "2024-12-15T19:51:33Z")

</div>

In addition to the above, I don’t think you need to explicitly import the http action. At least I didn’t: see section 3 of the post below:

> [@\[OH4\] Octopus Energy (UK) - real-time electricity consumption data with Home Mini](https://community.openhab.org/t/oh4-octopus-energy-uk-real-time-electricity-consumption-data-with-home-mini/160187):
>
> Overview If you are a customer of Octopus Energy in the UK, and you have a [Home Mini](https://octopus.energy/blog/octopus-home-mini/) installed and working, then you are uploading your consumption data to Octopus [every 10 seconds](https://octopus.energy/octopus-home-mini-faq/). You are able to access this data via their GraphQL API at a refresh rate of roughly 30 seconds, providing near real-time electricity consumption data. Whilst the obvious down-side is that you are relying on a non-local third-party service to provide data, the obvious up-side is that this data is the exact data that …

---

_[View the full topic](https://community.openhab.org/t/sleep-causes-sendhttpgetrequest-to-fail-intermintently/160876)._
