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
321 stars 62 forks source link

bug: "not iterable", save fails #31

Closed beacomedian closed 6 months ago

beacomedian commented 10 months ago

image

I've tried reinstalling the extension and revoking->relinking Notion permissions but I receive this somewhat nondescript error when I try to save. I had previously been saving conversations without issue up as recently as two weeks ago.

L-a-r-t commented 10 months ago

Hi, thanks for reporting this issue!

This is the first time that I see this error message, I've made an update to the extension recently so it might have broken something that went under my radar.

If this is happening only with some conversations, could you tell me which ChatGPT model you're using with said conversations? In any case, I would need you to send me the logs of the error. You can see the logs by clicking on the link underlined in the attached screenshot, this is from the extensions tab of Chrome.

image

Sorry for the inconvenience, I hope that I'll have this fixed ASAP

L-a-r-t commented 10 months ago

I have an update about this : the issue is caused by an important update of ChatGPT's frontend that breaks the extension's page-scraping code. Since it is rolled out gradually, I wasn't aware of the change directly.

beacomedian commented 10 months ago

Hello thanks for the response. I wasn't able to find the error logs you mentioned but it sounds like you may be able to repro it locally. I was using Chat GPT 3.5 and 4 via the website (https://chat.openai.com). The service worker didn't seem to update messages or logs when I activated the extension: image Let me know if I'm looking in the wrong spot and if I can provide you additional information that would be helpful.

masachika-kamada commented 10 months ago

Hello,

I recently installed the ChatGPT to Notion extension and immediately encountered the "not iterable" error when attempting to save a conversation. This occurred on my very first attempt to use the extension, so it seems like the issue is present in the current version from the start.

I hope this information helps in resolving the issue. Thank you for your work on this extension.

alien4817 commented 10 months ago

1699887914127

hello, I have the same bug above. This occurred when I attempted to synchronize the chat-GPT content to notion database. Thank you for your work on this extension.

L-a-r-t commented 10 months ago

FYI, the extension was completely broken by a major update in ChatGPT's frontend. It was previously relying on frontend scraping for more speed on the user's side. The update to ChatGPT's frontend was so severe that I now have no practical way of gathering some previously easily-available data such as code generated by ChatGPT data analysis model and plugins as a whole.

I've finished working on making the extension rely on ChatGPT's backend with some tricks, the hotfix was submitted to the Chrome Extension Store and will be available in 24-48hrs. I hope that the team at OpenAI will be less keen on changing their own internal API as they are with their frontend 😅

gethinoakes commented 10 months ago

@L-a-r-t thanks for the work on fixing this, unfortunately there seems to be a new bug meaning full conversations can't be saved, and also a strange bug when trying to save a individual promp/answer.