alexandrosmagos / instagram_commenter_ui

A user friendly UI to automate commenting on Instagram posts!
GNU Affero General Public License v3.0
25 stars 9 forks source link

Error: secret option required for sessions #3

Closed Rezinch closed 3 months ago

Rezinch commented 4 months ago

Im getting this code when i open the localhost:3000 page

Error: secret option required for sessions at session (C:\Users\rezin\instagram_commenter_ui\node_modules\express-session\index.js:204:12) at Layer.handle [as handle_request] (C:\Users\rezin\instagram_commenter_ui\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (C:\Users\rezin\instagram_commenter_ui\node_modules\express\lib\router\index.js:328:13) at C:\Users\rezin\instagram_commenter_ui\node_modules\express\lib\router\index.js:286:9 at Function.process_params (C:\Users\rezin\instagram_commenter_ui\node_modules\express\lib\router\index.js:346:12) at next (C:\Users\rezin\instagram_commenter_ui\node_modules\express\lib\router\index.js:280:10) at urlencodedParser (C:\Users\rezin\instagram_commenter_ui\node_modules\body-parser\lib\types\urlencoded.js:91:7) at Layer.handle [as handle_request] (C:\Users\rezin\instagram_commenter_ui\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (C:\Users\rezin\instagram_commenter_ui\node_modules\express\lib\router\index.js:328:13) at C:\Users\rezin\instagram_commenter_ui\node_modules\express\lib\router\index.js:286:9

Skayzzz commented 4 months ago

same issue here

alexandrosmagos commented 3 months ago

Have you renamed the .env example file to .env, and changed the session_secret string? And if so, make sure the session_secret='' exists

Skayzzz commented 3 months ago

Hi alex, my bad I forgot to answer. I did what the readme says and it's good now ! Thank you so much for the code

nicobenegass commented 3 months ago

Happened to me before, even changing the string. I found out that i didn't clone the repository right, somehow this being my first time i downloaded the zip of the code and runned it directly from there. Then i downgraded the node version just in case, and cloned the repository the right way (from cmd) and all went good!

PS: made an account just to comment this