JSON.parse error in DeepChat
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3564000. -->
Reported by: [siva01](https://www.drupal.org/user/1600434)
Related to !1061
>>>
<h2>Symptoms</h2>
<ul>
<li> RAG search utilizing vector db</li>
<li>JSON parsing error displayed in browser console: `JSON.parse: unexpected character at line 1 column 1 of the JSON data`</li>
<li>Error occurred during agent continuation when `getAllMessages()` function processed "dummy_loading" messages</li>
<li>OpenAI API responses were valid (confirmed via OpenAI logs)</li>
<li>After browser reload (F5), the correct answer displayed properly</li>
<li> Only affected non-streaming responses</li>
</ul>
<p><img src="https://www.drupal.org/files/issues/2025-12-18/json-parse-error.png" alt="JSON.parse"></p>
issue