L-a-r-t / chatgpt-to-notion

ChatGPT to Notion brings the cleverness of ChatGPT right into your Notion workspace!
https://chrome.google.com/webstore/detail/chatgpt-to-notion/oojndninaelbpllebamcojkdecjjhcle
332 stars 64 forks source link

bug: Unexpected end of JSON output (can't save full conversation) #32

Closed gethinoakes closed 8 months ago

gethinoakes commented 1 year ago

Chrome extension version 1.8.1 First of all thanks for the plugin. I just tried the extension after the this update https://github.com/L-a-r-t/chatgpt-to-notion/issues/31

However there is a bug when attempting to save the full conversation Unexpected end of JSON input CleanShot 2023-11-17 at 08 34 55 CleanShot 2023-11-17 at 08 32 13 CleanShot 2023-11-17 at 08 37 32

This bug only seems to affect saving the full conversation, there is another bug when saving an individual message, but I'll create another issue for that.

L-a-r-t commented 1 year ago

Thanks for reporting this other issue!

Interestingly, this seems to happen with every conversation that you're trying to save but doesn't happen with any of the cases I've been testing. This means that there are probably some edge cases that are out of the scope of my set of test conversations. Could you please share the link of one of the conversations where this issue is occuring? If you don't want it to be public you may send it to me via email at tlartigau.pro@gmail.com.

The logs that you've provided also helped me to see what's causing the issue deep in the code, it should now be fixed. However it would still be useful to understand what causes this behavior in some cases and not others.

gethinoakes commented 1 year ago

@L-a-r-t I created a new test conversation and the same issue is happening, here's a link to the conversation: ChatGPT to Notion Test.

Do you mean the issue is fixed in an upcoming plugin update? Looking at the plugin it's still on 1.8.1. Thanks in advance! :)

gethinoakes commented 1 year ago

@L-a-r-t I'm running 1.8.2 now and it seems to be working perfectly, thank you!