Node.js SELF_SIGNED_CERT_IN_CHAIN 500 error

I am running fastify on Node.js, and I am trying to add an authenticated router to /admin { "statusCode": 500, "code": "SELF_SIGNED_CERT_IN_CHAIN", "error": "Internal Server Error", "message": "self-signed certificate in certificate chain" }
Solution:
I fixed it by disabling SSL on the connection between session store
Jump to solution
5 Replies
Percy
Percy13mo ago
Project ID: 13314144-b328-475d-867f-a0337164519f
TurboFarmer9000
TurboFarmer9000OP13mo ago
13314144-b328-475d-867f-a0337164519f
TurboFarmer9000
TurboFarmer9000OP13mo ago
If i just turn off the cookie session store options it works. https://github.com/expressjs/session/issues/281 Above seems related. But they talk about editing the nginx config. I assume Railway uses some proxy service internally to expose servives publically
GitHub
unable to use secure cookies · Issue #281 · expressjs/session
I am trying to set secure cookies, it does not work at first try. I am using secret: sessionSecret, resave: false, saveUninitialized: true, cookie: { secure: true, httpOnly: true, domain: 'bein...
No description
Solution
TurboFarmer9000
TurboFarmer900013mo ago
I fixed it by disabling SSL on the connection between session store
Brody
Brody13mo ago
that would be the proper solution, glad you where able to solve it!
Want results from more Discord servers?
Add your server