---
title: "Discussion on \"Handling sleep mode and internet connection issues with web APIs\" | Hashnode"
description: "Discussion on \"Handling sleep mode and internet connection issues with web APIs\". We have a rest api that we use to update data with certain time intervals. We update our data by regularly calling a function that fetches the data using the setInterval method.\nHowever, we had some problems as a result of internet disconnection / ne..."
url: "https://hashnode.com/posts/handling-sleep-mode-and-internet-connection-issues-with-web-apis-59dfcc370792/64bda8fe8be04301f9cf7a8d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Handling sleep mode and internet connection issues with web APIs](https://sft.hashnode.dev/handling-sleep-mode-and-internet-connection-issues-with-web-apis-59dfcc370792?utm_source=hashnode&utm_medium=feed)

We have a rest api that we use to update data with certain time intervals. We update our data by regularly calling a function that fetches the data using the setInterval method. However, we had some problems as a result of internet disconnection / ne...

Jan 14, 2023 · 2 min read · sft.hashnode.dev  
Updated Aug 31, 2023  
Read the article

-   [#error-handling](https://hashnode.com/tag/error-handling)
-   [#web-api](https://hashnode.com/tag/web-api)
-   [#error-tracking](https://hashnode.com/tag/error-tracking)
-   [#errors-in-javascript](https://hashnode.com/tag/errors-in-javascript)
-   [#internet-connection](https://hashnode.com/tag/internet-connection)

## Written by

[Mustafa Dalga](https://hashnode.com/@mustafadalga)

@mustafadalga · Tallinn, Estonia

  
[View profile](https://hashnode.com/@mustafadalga)

Unfolding Tech & Life Through Code - Software Developer, Nature Photographer & Voracious Reader

I am a highly qualified software developer with over 6 years of experience in developing desktop and web applications using various technologies.My main programming language is JavaScript, and I am currently working as a Front-end developer at Heybooster. I am passionate about software development and constantly seek to improve my skills and knowledge through research and self-teaching. I share my projects on Github as open source to not only learn and grow, but also contribute to the development community. As a software developer, I am committed to upholding ethical standards in my work.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
