---
title: MOCA Server or Web API Step Timeout Error on Long Running Command
description: You may see an error message in your tests if you have a MOCA command or a Web API step that takes longer than 60 seconds to complete. 
---

[Skip to content](https://kb.cyclelabs.io/moca-server-or-web-api-step-timeout-error-on-long-running-command#main-content)

English - United States

Show submenu for translations

![](https://kb.cyclelabs.io/hs-fs/hubfs/main-lockup-color-Aug-11-2026-06-33-05-0386-PM.png?width=500&height=93&name=main-lockup-color-Aug-11-2026-06-33-05-0386-PM.png)

Open main navigation

Close main navigation

- English - United States
  
  Show submenu for translations
- [Get Support & Track Tickets](https://help.cyclelabs.io/)

[Get Support & Track Tickets](https://help.cyclelabs.io/?hsLang=en-us)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Cycle Knowledge Base](https://kb.cyclelabs.io/?hsLang=en-us)
2. [Common Issues](https://kb.cyclelabs.io/common-issues?hsLang=en-us)

# MOCA Server or Web API Step Timeout Error on Long Running Command

You may see the error message below in your tests if you have a MOCA command or a Web API step that takes longer than 60 seconds to complete. 

> ![](https://kb.cyclelabs.io/hubfs/Knowledge%20Base%20Import/edbsn27e8866cda75989f969f28a4657abd5cdecba46d92e03f98a150962d79cda711c4c0b3ddb79e2fab0070c3f1084c0ffb.png)

This error message is due to Cycle expecting a response from the MOCA server or the Web API endpoint within 60 seconds of sending the command. If the MOCA server or Web API endpoint has not responded within the default 60 seconds, Cycle will fail the step. 

 

This default 60 second response time can be extended using a configuration file. Please note that this timeout configuration update will apply to all steps expecting a server response.

 

To extend the default timeout period follow the steps below on the device where Cycle is running:

 

1\. Create a new file call ed ***"*** ***akka-config-overrides.conf"*** in the directory ***"*** ***C:/Users/ /AppData/Roaming/Cycle/config"***

 

> ***C:/Users/ /AppData/Roaming/Cycle/config/akka-config-overrides.conf***

 

2\. Copy and paste the contents below in bold text into the file.

> Please note that the uncommented example will extend the timeout to 5 minutes.
> 
> There are also commented examples to show how to adjust the time in seconds or to apply an infinite timeout period.
> 
> You can set the value of " akka.http.host-connection-pool.client.idle-timeout" according to the needs in your environment.

> File contents:
> 
>  
> 
> **# this will keep http connections open up to 5 minutes when receiving no data.**
> 
> **akka.http.host-connection-pool.client.idle-timeout = 5 min**
> 
>  
> 
> **# or you can specify time in seconds**
> 
> **# akka.http.host-connection-pool.client.idle-timeout = 180 s**
> 
>  
> 
> **# or you can keep connections open indefinitely**
> 
> **# akka.http.host-connection-pool.client.idle-timeout = infinite**

3\. Restart Cycle. 

- [Getting started](https://kb.cyclelabs.io/getting-started?hsLang=en-us)
- [Using Cycle with BYWMS](https://kb.cyclelabs.io/using-cycle-with-bywms?hsLang=en-us)
- [Cycle Appliance and CI/CD](https://kb.cyclelabs.io/cycle-appliance-and-ci-cd?hsLang=en-us)
- [Tips and Tricks](https://kb.cyclelabs.io/tips-and-tricks?hsLang=en-us)
- [Native App](https://kb.cyclelabs.io/native-app?hsLang=en-us)
- [Deprecated Steps](https://kb.cyclelabs.io/deprecated-steps?hsLang=en-us)
- [Common Issues](https://kb.cyclelabs.io/common-issues?hsLang=en-us)

[![](https://kb.cyclelabs.io/hs-fs/hubfs/main-lockup-color-Aug-11-2026-06-33-05-0386-PM.png?width=500&height=93&name=main-lockup-color-Aug-11-2026-06-33-05-0386-PM.png)](http://cyclelabs.io)

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2026, Cycle Labs