Hi,
I am running adapt framework 5.31.26 and authoring tool 0.11.1. on a Windows 10 PC.
Since yesterday I do have a problem, that the node server seems to crash as soon as someone logs in on the web page. The user is getting an invalid password message, but passwords did not change at all. Does anyone know this issue or has an idea of how to solve it?
Here is the error the console is showing:
C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring>node server
info [05 Sep 23 08:50:37 +02:00] configuration loaded from C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\conf\config.json
info [05 Sep 23 08:50:38 +02:00] Supporting the following authentication types:
info [05 Sep 23 08:50:38 +02:00] - local
info [05 Sep 23 08:50:38 +02:00] Connection established: adapt-tenant-master
info [05 Sep 23 08:50:39 +02:00] Adapt authoring tool 0.11.1.
info [05 Sep 23 08:50:39 +02:00] Adapt framework 5.31.26.
info [05 Sep 23 08:50:39 +02:00] Server started listening on port 5000
(node:17764) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead. (Triggered by calling processImmediate on process.)
(Use `node --trace-deprecation ...` to show where the warning was created)
{ success: false, error: "Cannot set property 'user' of undefined" }
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (_http_outgoing.js:561:11)
at ServerResponse.header (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\response.js:794:10)
at ServerResponse.send (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\response.js:174:12)
at ServerResponse.json (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\response.js:278:15)
at C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\lib\application.js:231:16
at Layer.handle_error (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\layer.js:71:5)
at trim_prefix (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:326:13)
at C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:286:9
at Function.process_params (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:346:12)
at next (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:280:10)
at Layer.handle_error (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\layer.js:67:12)
at trim_prefix (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:326:13)
at C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:286:9
at Function.process_params (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:346:12)
at next (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:280:10)
at Layer.handle_error (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\layer.js:67:12)
at trim_prefix (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:326:13)
at C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:286:9
at Function.process_params (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:346:12)
at Domain.next (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\express\lib\router\index.js:280:10)
at Domain.emit (events.js:375:28)
at Domain.emit (domain.js:470:12)
at Domain._errorHandler (domain.js:264:23)
at Object.<anonymous> (domain.js:167:29)
at process._fatalException (internal/process/execution.js:162:29)
TypeError: Cannot set property 'user' of undefined
at C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\plugins\auth\local\node_modules\passport-local\node_modules\passport\lib\passport\http\request.js:45:35
at pass (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\passport\lib\authenticator.js:274:43)
at serialized (C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\node_modules\passport\lib\authenticator.js:283:7)
at C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\lib\usermanager.js:504:7
at C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring\lib\tenantmanager.js:410:20
at C:\Users\MyAccount\Documents\AdaptAuthoringFiles\adapt_authoring