# Harvester.go infinitely loops on decoding JSON, fails to provide error context

**URL:** https://discuss.elastic.co/t/harvester-go-infinitely-loops-on-decoding-json-fails-to-provide-error-context/183628
**Category:** Beats
**Tags:** filebeat
**Created:** [May 30, 2019, 11:38pm UTC](https://discuss.elastic.co/t/harvester-go-infinitely-loops-on-decoding-json-fails-to-provide-error-context/183628 "2019-05-30T23:38:17Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![yverbin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yverbin/32/47014_2.png) [@yverbin](https://discuss.elastic.co/u/yverbin)
#### Post date: [June 3, 2019, 9:02am UTC](https://discuss.elastic.co/t/harvester-go-infinitely-loops-on-decoding-json-fails-to-provide-error-context/183628/4 "2019-06-03T09:02:16Z")

</div>

This PR does not prevent potential infinite loops in filebeat on parsing corrupted logs. It doesnt work in my case [Filebeat loops while corrupted logs processing](https://discuss.elastic.co/t/filebeat-loops-while-corrupted-logs-processing/183091/2)

---

_[View the full topic](https://discuss.elastic.co/t/harvester-go-infinitely-loops-on-decoding-json-fails-to-provide-error-context/183628)._
