# Using http\_poller on an api that does not end with a newline

**URL:** <https://discuss.elastic.co/t/using-http-poller-on-an-api-that-does-not-end-with-a-newline/45102>\
**Category:** Logstash\
**Created:** [March 22, 2016, 1:03pm UTC](https://discuss.elastic.co/t/using-http-poller-on-an-api-that-does-not-end-with-a-newline/45102 "2016-03-22T13:03:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elvarb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elvarb/32/44840_2.png) [@elvarb](https://discuss.elastic.co/u/elvarb)\
**Post date:** [March 22, 2016, 1:03pm UTC](https://discuss.elastic.co/t/using-http-poller-on-an-api-that-does-not-end-with-a-newline/45102/1 "2016-03-22T13:03:01Z")

</div>

I'm trying to query the Unifi API but no matter what I did nothing was going through until I tested a few different API's and noticed right away that when querying the Unifi API the reply did not end with a newline. This seems to mean that the http\_poller never stops waiting for more data and that in the end nothing is sent through.

Is there some trickery to get this to work?

---

<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:** [July 6, 2017, 5:05am UTC](https://discuss.elastic.co/t/using-http-poller-on-an-api-that-does-not-end-with-a-newline/45102/2 "2017-07-06T05:05:55Z")

</div>

Closed on July 6, 2017, 5:05am UTC


