K
Kinde9mo ago
C

Error: Authentication failed because it tries to validate state

Suddenly this fail on login, Error: TypeError: fetch failed at _callee2$ (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:407:56) at tryCatch (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:1357) at Generator.<anonymous> (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:4174) at Generator.throw (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:2208) at asyncGeneratorStep (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:19:103) at _throw (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:20:291) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error: Authentication failed because it tries to validate state at _callee2$ (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:330:56) at tryCatch (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:1357) at Generator.<anonymous> (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:4174) at Generator.next (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:2208) at asyncGeneratorStep (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:19:103) at _next (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:20:194) at /home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:20:364 at new Promise (<anonymous>) at /home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:20:97 Been receiving internal cert errors all morning as well, when login process as kinde is running!
6 Replies
C
COP9mo ago
also suddenli flags cant be received: Error: Flag geo-login does not exist, and no default value has been provided at KindeClient.getFlag (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:726:15) at /home/node/app/server.js:618:27 at Layer.handle [as handle_request] (/home/node/app/node_modules/express/lib/router/layer.js:95:5) at next (/home/node/app/node_modules/express/lib/router/route.js:149:13) at _callee2$ (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:399:51) at tryCatch (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:1357) at Generator.<anonymous> (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:4174) at Generator.next (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:2208) at asyncGeneratorStep (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:19:103) at _next (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:20:194) Secure Connection Failed An error occurred during a connection to login.xxxxx.dk. Peer reports it experienced an internal error. Error code: SSL_ERROR_INTERNAL_ERROR_ALERT Thats the cname for eu.kinde.com that thorws this error
C
COP9mo ago
No description
C
COP9mo ago
And still failes with Error: Authentication failed because it tries to validate state at _callee2$ (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:330:56) at tryCatch (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:1357) at Generator.<anonymous> (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:4174) at Generator.next (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:18:2208) at asyncGeneratorStep (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:19:103) at _next (/home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:20:194) at /home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:20:364 at new Promise (<anonymous>) at /home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:20:97 at /home/node/app/node_modules/@kinde-oss/kinde-nodejs-sdk/dist/KindeClient.js:415:24
Oli - Kinde
Oli - Kinde9mo ago
Hey @C, I will get one of my NodeJS expert teammate to look into this and get back to you. In the meantime, @C would you be willing to provide a code sample of the logic that you think it causing this authentication error?
C
COP9mo ago
All calls to api and .authenticate is giving http 500 And the cname for the .kinde site is giving the certificate error If the user tries the login 5 or 10 times in a row then it suddenly will log the user in, so seams like a capacity problem in your end
Oli - Kinde
Oli - Kinde9mo ago
I will get one of my teammates to look into this. Hey @C, We made some changes to our EU region recently that fixed some SSL issues. I can access and load the login screen on your custom domain. We cannot locate any 500 errors in our logs, do you use any other tools? If you are still experiencing issues, are you able to send a recording of your issue (including your DevTools Console so we can see any errors)? You can DM me this if you prefer.
Want results from more Discord servers?
Add your server