# GET request for collection with no entries throws error

**URL:** https://discourse.getcockpit.com/t/get-request-for-collection-with-no-entries-throws-error/2577
**Category:** Cockpit v2
**Created:** [November 27, 2022, 5:06am UTC](https://discourse.getcockpit.com/t/get-request-for-collection-with-no-entries-throws-error/2577 "2022-11-27T05:06:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jbeuria](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@jbeuria](https://discourse.getcockpit.com/u/jbeuria)
#### Post date: [November 27, 2022, 5:06am UTC](https://discourse.getcockpit.com/t/get-request-for-collection-with-no-entries-throws-error/2577/1 "2022-11-27T05:06:27Z")

</div>

Hello team,

When I query on a collection without entries (a priori it is not known), it throws error.

```auto
{"error":"Lime\\Module::{closure}(): Argument #1 ($array) must be of type array, null given, called in \/cpc\/lib\/Lime\/App.php on line 1346","file":"\/cpc\/modules\/Content\/bootstrap.php","line":375}

```

Note: It happens only when populate:1 is raised.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/f/fb0609df0b97a47697e3b9b3c28b5f21bd5216d8.png)
