# Httpjson crashes when receiving json array at the top level

**URL:** <https://discuss.elastic.co/t/httpjson-crashes-when-receiving-json-array-at-the-top-level/241714>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 17, 2020, 7:27pm UTC](https://discuss.elastic.co/t/httpjson-crashes-when-receiving-json-array-at-the-top-level/241714 "2020-07-17T19:27:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sasha\_Gutfraind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sasha_gutfraind/32/45310_2.png) [@Sasha\_Gutfraind](https://discuss.elastic.co/u/Sasha_Gutfraind)\
**Post date:** [July 17, 2020, 7:27pm UTC](https://discuss.elastic.co/t/httpjson-crashes-when-receiving-json-array-at-the-top-level/241714/1 "2020-07-17T19:27:06Z")

</div>

I'm using your excellent [https://www.elastic.co/guide/en/beats/filebeat/7.6/filebeat-input-httpjson.html](https://www.elastic.co/guide/en/beats/filebeat/7.6/filebeat-input-httpjson.html) version 7.6.2

I'm calling this API:

> **[List a Project's Issues](https://docs.sentry.io/api/events/get-project-group-index/)**
>
> Return a list of issues (groups) bound to a project. All parameters aresupplied as query string parameters.A default query of \`\`is:unresolved\`\` is applied. ...

  
filebeat.yml has no processors, and is supposed to dump the event into ES

The API returns a JSON response body of the form [{event1},{event1},{event1}]  
Notice the array at the top level in this JSON response.

filebeats generates an ERROR with the message  
ERROR [httpjson] httpjson/input.go:120 http.response.body is not valid JSON {"url": "[https://sentry.io/api/0/OBSCURED](https://sentry.io/api/0/OBSCURED)"}

This could be a parsing error. Please advise if there is a workaround

---

<div class="post-metadata">

**Author:** ![Sasha\_Gutfraind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sasha_gutfraind/32/45310_2.png) [@Sasha\_Gutfraind](https://discuss.elastic.co/u/Sasha_Gutfraind)\
**Post date:** [July 17, 2020, 10:15pm UTC](https://discuss.elastic.co/t/httpjson-crashes-when-receiving-json-array-at-the-top-level/241714/2 "2020-07-17T22:15:51Z")

</div>

An open API to reproduce this is: [https://api.wheretheiss.at/v1/satellites](https://api.wheretheiss.at/v1/satellites)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 15, 2020, 12:15am UTC](https://discuss.elastic.co/t/httpjson-crashes-when-receiving-json-array-at-the-top-level/241714/3 "2020-08-15T00:15:52Z")

</div>

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