# Error on ask.discourse.com: SyntaxError: Unexpected end of JSON input

**URL:** https://meta.discourse.org/t/error-on-ask-discourse-com-syntaxerror-unexpected-end-of-json-input/373545
**Category:** Bug
**Tags:** ask-discourse
**Created:** [July 9, 2025, 12:46pm UTC](https://meta.discourse.org/t/error-on-ask-discourse-com-syntaxerror-unexpected-end-of-json-input/373545 "2025-07-09T12:46:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [July 9, 2025, 12:46pm UTC](https://meta.discourse.org/t/error-on-ask-discourse-com-syntaxerror-unexpected-end-of-json-input/373545/1 "2025-07-09T12:46:27Z")

</div>

Hey folks,

For the last 2-3 days, I keep encountering the same error message on [ask.discourse.com](http://ask.discourse.com):

SyntaxError: Unexpected end of JSON input

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [July 9, 2025, 1:12pm UTC](https://meta.discourse.org/t/error-on-ask-discourse-com-syntaxerror-unexpected-end-of-json-input/373545/2 "2025-07-09T13:12:06Z")

</div>

Hmm… don’t seem to be seeing that:

 ![The image shows a webpage with instructions on how to create a custom badge in Discourse, a platform for online discussion. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/0/5/6/05611bccbb5b6b246d09474ea748b4b7e133c1be.png)

Is there a specific question that you are using? Or is it across all questions/inputs?

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [July 9, 2025, 1:28pm UTC](https://meta.discourse.org/t/error-on-ask-discourse-com-syntaxerror-unexpected-end-of-json-input/373545/4 "2025-07-09T13:28:46Z")

</div>

Thanks for reporting @jrgong - I can repro this too and generate errors in the log. We’re having a look. 👀

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 10, 2025, 6:57am UTC](https://meta.discourse.org/t/error-on-ask-discourse-com-syntaxerror-unexpected-end-of-json-input/373545/6 "2025-07-10T06:57:35Z")

</div>

I suspect this is rate limiting or some error with embedding backfilling, cause when I try to parse search results I get invalid json from a json API.

I put a safeguard in place.

We can later search our AI logs for “Failed to search” to see if it is still happening @Falco and I guess push the result.body somewhere.

So the errors should be gone now, but if search is failing hallucinations will go up.

Had trouble reproing this so I suspect there is an edge case with our new embeddings.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [July 10, 2026, 3:20am UTC](https://meta.discourse.org/t/error-on-ask-discourse-com-syntaxerror-unexpected-end-of-json-input/373545/9 "2026-07-10T03:20:44Z")

</div>


