# JSON parsing error in X-MSYS-API

**URL:** https://meta.discourse.org/t/json-parsing-error-in-x-msys-api/52395
**Category:** Support
**Created:** [November 2, 2016, 8:24pm UTC](https://meta.discourse.org/t/json-parsing-error-in-x-msys-api/52395 "2016-11-02T20:24:39Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![philh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philh/32/532740_2.png) [@philh](https://meta.discourse.org/u/philh)
#### Post date: [November 2, 2016, 8:24pm UTC](https://meta.discourse.org/t/json-parsing-error-in-x-msys-api/52395/1 "2016-11-02T20:24:39Z")

</div>

On two different relatively new instances email has stopped working.

Sending test email from admin shows this in admin/email/skipped

```
[Sender] 550 5.6.0 JSON parsing error in X-MSYS-API: continue at offset 0

```

Tried rebuilding but no change. Any suggestions?

Edit: running 1.7.0.beta7

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 2, 2016, 10:16pm UTC](https://meta.discourse.org/t/json-parsing-error-in-x-msys-api/52395/2 "2016-11-02T22:16:04Z")

</div>

Are you using sparkpost as mail provider?

---

<div class="post-metadata">

### Author: ![philh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philh/32/532740_2.png) [@philh](https://meta.discourse.org/u/philh)
#### Post date: [November 2, 2016, 10:17pm UTC](https://meta.discourse.org/t/json-parsing-error-in-x-msys-api/52395/3 "2016-11-02T22:17:35Z")

</div>

Yes, using sparkpost.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 2, 2016, 10:20pm UTC](https://meta.discourse.org/t/json-parsing-error-in-x-msys-api/52395/4 "2016-11-02T22:20:31Z")

</div>

Hmm so this is specific to sparkpost?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 2, 2016, 10:22pm UTC](https://meta.discourse.org/t/json-parsing-error-in-x-msys-api/52395/5 "2016-11-02T22:22:15Z")

</div>

Yeah. It’s the header we use to send SparkPost the message\_id in case we get a bounce.

---

<div class="post-metadata">

### Author: ![JakeHower](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jakehower/32/107662_2.png) [@JakeHower](https://meta.discourse.org/u/JakeHower)
#### Post date: [November 2, 2016, 10:50pm UTC](https://meta.discourse.org/t/json-parsing-error-in-x-msys-api/52395/6 "2016-11-02T22:50:00Z")

</div>

I’ve got the exact same issue with SparkPost too. Every outbound email is being rejected.

This is the raw json

```
{"bounce_class":"25","customer_id":"94563","error_code":"550","event_id":"84456312826851433","msg_from":"reply+verp-be6a5b9dba99f405d9de60d7c1925275@fastgrowth.io","raw_rcpt_to":"jake@fastgrowth.io","raw_reason":"550 5.6.0 JSON parsing error in X-MSYS-API: continue at offset 0","rcpt_meta":{},"rcpt_tags":[],"rcpt_to":"jake@fastgrowth.io","reason":"550 5.6.0 JSON parsing error in {hash}: continue at offset 0","remote_addr":"159.203.174.197:52884","tdate":"2016-11-02T22:44:07.000Z","template_id":"smtp_84456312805812268","template_version":"0","transmission_id":"84456312805812268","type":"policy_rejection","timestamp":"2016-11-03T09:44:07.000+11:00"}

```

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 3, 2016, 2:00am UTC](https://meta.discourse.org/t/json-parsing-error-in-x-msys-api/52395/7 "2016-11-03T02:00:44Z")

</div>

This should be fixed now 🐎

[https://github.com/discourse/discourse/commit/17169b3037037103a54317c1f03b86f1359ed1a7](https://github.com/discourse/discourse/commit/17169b3037037103a54317c1f03b86f1359ed1a7)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 3, 2016, 2:00am UTC](https://meta.discourse.org/t/json-parsing-error-in-x-msys-api/52395/8 "2016-11-03T02:00:46Z")

</div>


