# handleSQSMessage failed: json unmarshal sqs message body failed at offset 1 with syntax error: invalid character 'T' looking for beginning of value

**URL:** https://discuss.elastic.co/t/handlesqsmessage-failed-json-unmarshal-sqs-message-body-failed-at-offset-1-with-syntax-error-invalid-character-t-looking-for-beginning-of-value/286249
**Category:** Beats
**Tags:** filebeat
**Created:** [October 8, 2021, 2:11pm UTC](https://discuss.elastic.co/t/handlesqsmessage-failed-json-unmarshal-sqs-message-body-failed-at-offset-1-with-syntax-error-invalid-character-t-looking-for-beginning-of-value/286249 "2021-10-08T14:11:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![EvanGertis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evangertis/32/85191_2.png) [@EvanGertis](https://discuss.elastic.co/u/EvanGertis)
#### Post date: [October 8, 2021, 2:11pm UTC](https://discuss.elastic.co/t/handlesqsmessage-failed-json-unmarshal-sqs-message-body-failed-at-offset-1-with-syntax-error-invalid-character-t-looking-for-beginning-of-value/286249/1 "2021-10-08T14:11:11Z")

</div>

I am trying to trouble shoot an issue. I have a set of logs from ecs that are to be sent to an sqs queue. The container logs show that the logs are being sent. However, when I poll the sqs queue none of the messages are received.

[![enter image description here](https://i.stack.imgur.com/QNIFj.png)](https://i.stack.imgur.com/QNIFj.png)  
[![enter image description here](https://i.stack.imgur.com/T6Man.png)](https://i.stack.imgur.com/T6Man.png)

Any help with this would be greatly appreciated.

```auto
2021-10-06T22:16:30.330Z ERROR [input.s3] s3/collector.go:137 handleSQSMessage failed: json unmarshal sqs message body failed at offset 1 with syntax error: invalid character 'T' looking for beginning of value {"queue_url": "https://sqs.us-east-1.amazonaws.com/721086286010/filebeat-cloudtrail-sqs", "region": "us-east-1"}

```

---

<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: [November 5, 2021, 4:11pm UTC](https://discuss.elastic.co/t/handlesqsmessage-failed-json-unmarshal-sqs-message-body-failed-at-offset-1-with-syntax-error-invalid-character-t-looking-for-beginning-of-value/286249/2 "2021-11-05T16:11:46Z")

</div>

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