obsidian-smart-connections icon indicating copy to clipboard operation
obsidian-smart-connections copied to clipboard

SyntaxError: Unexpected end of JSON input

Open Daniel-ltw opened this issue 1 year ago • 2 comments

Was trying to get a response from the chat and I keep getting API Error. See console logs for details.. So I went digging and found this:

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at ScChatModel.get_text_chunk_from_stream (plugin:smart-connections:4051:23)
    at eval (plugin:smart-connections:4022:37)
    at eval (plugin:smart-connections:3300:13)
    at Array.forEach (<anonymous>)
    at SmartStreamer.dispatchEvent (plugin:smart-connections:3299:38)
    at eval (plugin:smart-connections:3366:18)
    at Array.forEach (<anonymous>)
    at #onStreamProgress (plugin:smart-connections:3364:37)

It would be great if you could debug and come up with a better solution around this problem.

Daniel-ltw avatar Sep 11 '24 07:09 Daniel-ltw

@Daniel-ltw which model? And is it continuing to happen? 🌴

brianpetro avatar Sep 17 '24 16:09 brianpetro

Have not looked into things since.

The chat seems to be working for me now.

Daniel-ltw avatar Sep 18 '24 22:09 Daniel-ltw