wechat-chatgpt icon indicating copy to clipboard operation
wechat-chatgpt copied to clipboard

The stream is not readable. Maybe has already been consumed, and now it was drained.

Open tian-jie opened this issue 2 years ago • 4 comments

cloned this project and try to save files to local disk, but when using filebox.toFile, it throws out the exception.

code: var filebox = await message.toFileBox(); await filebox.toFile();

I saw the discussion: https://github.com/huan/file-box/issues/50 but I didn't find solution, it just said we need to save it in first use. but this is the top thing I can do, just in on('message') function.

anyway to work around?

tian-jie avatar Dec 15 '22 14:12 tian-jie