withbotshq / botsapp

An app to make personalized AI bots and chat with them
https://withbots.app/
21 stars 0 forks source link

Handle race condition with streaming requests and chat state #39

Open jclem opened 1 year ago

jclem commented 1 year ago

An ENOENT is thrown if a user deletes a chat while we are waiting on a response:

(node:48838) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/jclem/Library/Application Support/Bots/data/chats/0008.json'