# Cumulocity IoT - API calls block after a (large?) number of requests in limited time

**URL:** https://community.cumulocity.com/t/cumulocity-iot-api-calls-block-after-a-large-number-of-requests-in-limited-time/7679
**Category:** Forum
**Tags:** cumulocity
**Created:** [March 30, 2022, 5:12am UTC](https://community.cumulocity.com/t/cumulocity-iot-api-calls-block-after-a-large-number-of-requests-in-limited-time/7679 "2022-03-30T05:12:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Peter\_Coppens](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@Peter\_Coppens](https://community.cumulocity.com/u/Peter_Coppens)
#### Post date: [March 30, 2022, 5:12am UTC](https://community.cumulocity.com/t/cumulocity-iot-api-calls-block-after-a-large-number-of-requests-in-limited-time/7679/1 "2022-03-30T05:12:26Z")

</div>

#### What product/components do you use and which version/fix level?

Cumulocity API

#### Are you using a free trial or a product with a customer license?

API deployed as part of our Cumulocity subscriptions ([datylon.cumulocity.com](http://datylon.cumulocity.com))

#### What are trying to achieve? Please describe in detail.

End to end testing

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

We do not get any errors. At some point API calls just block and wait till the client (calling) OS decides to close the connection

#### Have you installed latest fixes for the products

We use plane HTTP calls to invoke the cloud deployed Cumulocity API backend

To summarize - our integration tests oftentimes block on an API call to Cumulocity. It always seems to happen after a ‘larger’ number of requests (\>1000) in a ‘limited’ time. We do not receive a 427 but the calls just blocks until the OS on the client side closes the connection

Any guidance on how to avoid this would be greatly appreciated.

Tx

Peter Coppens  
[peter.coppens@datylon.com](mailto:peter.coppens@datylon.com)

---

<div class="post-metadata">

### Author: ![Christian\_Guether1](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christian_guether1/32/14848_2.png) [@Christian\_Guether1](https://community.cumulocity.com/u/Christian_Guether1)
#### Post date: [March 30, 2022, 6:39am UTC](https://community.cumulocity.com/t/cumulocity-iot-api-calls-block-after-a-large-number-of-requests-in-limited-time/7679/2 "2022-03-30T06:39:49Z")

</div>

Hi Peter,

can share additional details about the integration test:

- what kind of requests are talking about?
  - loading information from the Inventory or sending measurements?
  - can you list specific requests

- how do you execute the requests to Cumulocity?
  - is it via a script?
  - do you use any SDK for sending the requests?

- what is the tps (transaction per seconds) you see?

Best regards  
Christian

---

<div class="post-metadata">

### Author: ![Peter\_Coppens](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@Peter\_Coppens](https://community.cumulocity.com/u/Peter_Coppens)
#### Post date: [March 30, 2022, 6:59am UTC](https://community.cumulocity.com/t/cumulocity-iot-api-calls-block-after-a-large-number-of-requests-in-limited-time/7679/3 "2022-03-30T06:59:38Z")

</div>

Hello Christian,

Tx for your quick(!) reaction.

Normally we send these requests through our backend service but we can reproduce the problem using postman

The requests are main inventory calls

Here are a few examples in ‘curl’ form

```auto
curl -k -i --raw "[https://datylon.cumulocity.com/inventory/managedObjects/191916809](https://datylon.cumulocity.com/inventory/managedObjects/191916809)" -H "host: [datylon.cumulocity.com](http://datylon.cumulocity.com)" -H "accept: */*" -H "user-agent: AHC/2.1"

```

```auto
curl -k -i --raw "[https://datylon.cumulocity.com/inventory/managedObjects/191918003](https://datylon.cumulocity.com/inventory/managedObjects/191918003)" -H "host: [datylon.cumulocity.com](http://datylon.cumulocity.com)" -H "accept: */*" -H "user-agent: AHC/2.1"

```

```auto
curl -k -i --raw "[https://datylon.cumulocity.com/inventory/managedObjects?query=$filter=name%%20eq%%20d2e20311-dd1e-41eb-bf2b-af3aa393691d](https://datylon.cumulocity.com/inventory/managedObjects?query=$filter=name%%20eq%%20d2e20311-dd1e-41eb-bf2b-af3aa393691d)" -H "host: [datylon.cumulocity.com](http://datylon.cumulocity.com)" -H "accept: */*" -H "user-agent: AHC/2.1"

```

Wkr

Peter

---

<div class="post-metadata">

### Author: ![Peter\_Coppens](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@Peter\_Coppens](https://community.cumulocity.com/u/Peter_Coppens)
#### Post date: [April 11, 2022, 7:03am UTC](https://community.cumulocity.com/t/cumulocity-iot-api-calls-block-after-a-large-number-of-requests-in-limited-time/7679/4 "2022-04-11T07:03:33Z")

</div>

Hello,

Anyone any tips or similar experiences wrt to this issue?

Tx!

Peter

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)
#### Post date: [July 10, 2022, 7:04am UTC](https://community.cumulocity.com/t/cumulocity-iot-api-calls-block-after-a-large-number-of-requests-in-limited-time/7679/5 "2022-07-10T07:04:14Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
