Closed ArtISTTT closed 1 year ago
Hi
Please, provide more technical info about your environment - versions of nodejs, npm, OS, contents of package.json, etc. Also, it would be great if you could create a repository and upload your code to it, which I could download and test on my own to try to catch your bug.
I have the same problem, I added the exact path to the file and the server stopped crashing. this.instance .use( new LocalSession({ database: '../../session_db.json', storage: LocalSession.storageFileAsync, }), ) .middleware();
@Shuma24 may you please send dependencies
which you are using in package.json
of your project?
Looks like your server simply reloads itself each time when session_db.json
file modified.
This case pretty much similar to #186
Closing due to lack of activity
Usage:
bot.use((new LocalSession({ database: 'sessions.json' })).middleware())
I have a telegram bot that works great but I need to connect sessions saved locally. I connect middleware first. And my project stops working and I don't see any errors in the console