Cant login after updating credential to use AWS Secrets

Feature(s) impacted

Authentication to Forest Admin dashboard. Unable to log in due to callback URL issues.

Observed behavior

When attempting to log in to Forest Admin, the client attempts to call back to http://localhost:3310/forest/authentication/callback instead of our production URL, resulting in authentication failure. The server logs show successful secret loading and initial authentication attempts, but the callback fails.

Expected behavior

Authentication should complete successfully using our production URL (https://api.hotelsconnect.com.au) for the callback.

Failure Logs

// Chrome Developer Console Error:

GET http://localhost:3310/forest/authentication/callback?code=NXm4Wjfm-tBDsUEij

net::ERR_CONNECTION_REFUSED

// Server Logs show successful secret loading:

Forest Admin Secrets loaded: {

envSecretExists: true,

envSecretStart: ‘72a8b44419…’,

authSecretExists: true,

authSecretStart: ‘fad48c5574…’

}

// Authentication attempts return 200:

POST /forest/authentication 200 1592.355 ms - 1018

Context

  • Project name: HotelsConnect

  • Team name: HotelsConnect

  • Environment name: Production

  • Agent technology: nodejs

  • Agent (forest package) name & version: forest-express-mongoose 9.5.0, forest-express 10.6.0

  • Database type: MongoDB

  • Recent changes made: Migrated environment variables to AWS Secrets Manager, but the issue started after this change. Previously authentication was working with the same Forest Admin configuration when using local .env file.

Hello,
You probably miss to configure the APPLICATION_URL env variable because by default the value is localhost. This documentation will help you to fix the issue :pray:

1 Like

Tried that,tried resetting all of the credentials back to being in the codevase and now its still not working so I’m clueless.

Did you try to debug by adding logs inside your codebase when you start your agent? At this moment, what is the APPLICATION_URL value?

[nodemon] restarting due to changes…
[nodemon] starting babel-node -r dotenv/config ./src/app.js
Forest Express Version: 10.6.0
Forest Express Mongoose Version: 9.5.0

=== Forest Admin Dependencies ===
{
‘forest-express’: ‘10.6.0’,
‘forest-express-mongoose’: ‘9.5.0’,
mongoose: ‘6.13.4’,
node: ‘v18.20.5’
}

=== Forest Admin Initialization Debug ===
Environment: {
NODE_ENV: ‘development’,
APPLICATION_URL: ‘https://api.hotelsconnect.com.au’,
FOREST_ENV_SECRET: ‘✓ Set’,
FOREST_AUTH_SECRET: ‘✓ Set’
}

Application URL Details: {
raw: ‘https://api.hotelsconnect.com.au’,
protocol: ‘https’,
hostname: ‘api.hotelsconnect.com.au’,
isLocalhost: false,
hasProtocol: true
}
Fetching secrets from AWS Secrets Manager…
Secrets loaded successfully
Forest Admin Routes:

  • POST /forest/actions/generate-new-qr-codes
  • POST /forest/actions/download-qr-codes
  • POST /forest/actions/download-reports

=== Forest Admin Pre-initialization Checks ===
Configuration Checks: {
envSecret: { exists: true, length: 64, isValid: true },
authSecret: { exists: true, length: 48, isValid: true },
applicationUrl: {
value: ‘https://api.hotelsconnect.com.au’,
isValid: true,
isSecure: true,
hostname: ‘api.hotelsconnect.com.au’,
port: ‘443’
},
mongoose: {
isConnected: true
}
}

Initializing Forest Admin with config: {
envSecret: ‘72a8b444…’,
authSecret: ‘fad48c55…’,
applicationUrl: ‘https://api.hotelsconnect.com.au
}
Mongoose: checkins.createIndex({ hotel_id: 1 }, { background: true })
Mongoose: passwordresets.createIndex({ user_id: 1 }, { background: true })
Mongoose: hotels.createIndex({ location: ‘2dsphere’ }, { background: true })
[forest] :deciduous_tree::deciduous_tree::deciduous_tree: Checking need for apimap update…
Mongoose: qrcodes.createIndex({ provider_id: 1 }, { background: true })
Mongoose: serviceproviders.createIndex({ location: ‘2dsphere’ }, { background: true })
Mongoose: checkins.createIndex({ user_id: 1 }, { background: true })
Mongoose: purchases.createIndex({ user_id: 1 }, { background: true })
Mongoose: serviceproviders.createIndex({ name: ‘text’ }, { background: true })
Mongoose: purchases.createIndex({ check_in_id: 1 }, { background: true })
Mongoose: purchases.createIndex({ hotel_id: 1 }, { background: true })
Mongoose: hotels.createIndex({ name: ‘text’ }, { background: true })
[forest] :deciduous_tree::deciduous_tree::deciduous_tree: No change in apimap, nothing sent to Forest.

=== Forest Admin Initialization Success ===
{
timestamp: ‘2024-11-27T16:42:18.364Z’,
applicationUrl: ‘https://api.hotelsconnect.com.au’,
middlewarePresent: true,
mongooseConnection: ‘Connected’
}
Forest Admin initialized, setting up middleware…
HotelsConnect API listening on port 3000.
GET / 200 4.385 ms - 52
(node:609089) Warning: Accessing non-existent property ‘count’ of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:609089) Warning: Accessing non-existent property ‘findOne’ of module exports inside circular dependency
(node:609089) Warning: Accessing non-existent property ‘remove’ of module exports inside circular dependency
(node:609089) Warning: Accessing non-existent property ‘updateOne’ of module exports inside circular dependency
(node:609089) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
Scheduler: Running clean-up of active user check-ins.
GET / 200 0.759 ms - 52
GET / 200 0.316 ms - 52
Scheduler: Running clean-up of active user check-ins.
GET / 200 0.548 ms - 52

and then when I try to login

GET / 200 0.720 ms - 52
GET / 200 0.374 ms - 52
GET / 200 0.383 ms - 52
Scheduler: Running clean-up of active user check-ins.
OPTIONS /forest/authentication 204 0.925 ms - 0
OPTIONS /forest/authentication 204 1.038 ms - 0
POST /forest/authentication 200 1715.109 ms - -
POST /forest/authentication 200 1742.552 ms - -
OPTIONS /forest/authentication/callback?code=ssZg-3fU5PF-jxtcDvAwUQQHqgD1htlKP8woZuo9-xTUr4BpOb2voeQ0eVSnPQmA&state=%7B%22renderingId%22%3A124692%7D 204 0.378 ms - 0
OPTIONS /forest/authentication/callback?code=0e2Wvs9R7KyFBkkpEECUWcKSRgx6cEwz25E6sCu-0osev1j06OZgoCLvvcfFBYw3&state=%7B%22renderingId%22%3A124692%7D 204 0.215 ms - 0
Callback received: {
code: ‘ssZg-3fU5PF-jxtcDvAwUQQHqgD1htlKP8woZuo9-xTUr4BpOb2voeQ0eVSnPQmA’,
state: ‘{“renderingId”:124692}’
}
Authentication error: {
message: “Cannot read properties of undefined (reading ‘callback’)”,
stack: “TypeError: Cannot read properties of undefined (reading ‘callback’)\n” +
’ at _callee$ (/home/ubuntu/hotelsconnect2411-api/src/routes/forest.js:39:42)\n’ +
’ at tryCatch (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)\n’ +
’ at Generator. (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)\n’ +
’ at Generator.next (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)\n’ +
’ at asyncGeneratorStep (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17)\n’ +
’ at _next (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:7\n’ +
’ at new Promise ()\n’ +
’ at apply (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/asyncToGenerator.js:14:12)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/src/routes/forest.js:52:2\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/route.js:149:13)\n’ +
’ at Route.dispatch (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/route.js:119:3)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:284:15\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at Function.handle (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:175:3)\n’ +
’ at router (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:47:12)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at cors (/home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:188:7)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:224:17\n’ +
’ at originCallback (/home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:214:15)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:219:13\n’ +
’ at optionsCallback (/home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:199:9)\n’ +
’ at corsMiddleware (/home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:204:7)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at compression (/home/ubuntu/hotelsconnect2411-api/node_modules/compression/index.js:215:5)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at urlencodedParser (/home/ubuntu/hotelsconnect2411-api/node_modules/body-parser/lib/types/urlencoded.js:94:7)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at jsonParser (/home/ubuntu/hotelsconnect2411-api/node_modules/body-parser/lib/types/json.js:113:7)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at logger (/home/ubuntu/hotelsconnect2411-api/node_modules/morgan/index.js:144:5)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at expressInit (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/middleware/init.js:40:5)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at query (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/middleware/query.js:45:5)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at Function.handle (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:175:3)\n’ +
’ at Function.handle (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/application.js:181:10)\n’ +
’ at Server.app (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/express.js:39:9)\n’ +
’ at Server.emit (node:events:517:28)\n’ +
’ at Server.emit (node:domain:489:12)\n’ +
’ at parserOnIncoming (node:_http_server:1130:12)\n’ +
’ at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)’
}
GET /forest/authentication/callback?code=ssZg-3fU5PF-jxtcDvAwUQQHqgD1htlKP8woZuo9-xTUr4BpOb2voeQ0eVSnPQmA&state=%7B%22renderingId%22%3A124692%7D 500 64.052 ms - 102
Callback received: {
code: ‘0e2Wvs9R7KyFBkkpEECUWcKSRgx6cEwz25E6sCu-0osev1j06OZgoCLvvcfFBYw3’,
state: ‘{“renderingId”:124692}’
}
Authentication error: {
message: “Cannot read properties of undefined (reading ‘callback’)”,
stack: “TypeError: Cannot read properties of undefined (reading ‘callback’)\n” +
’ at _callee$ (/home/ubuntu/hotelsconnect2411-api/src/routes/forest.js:39:42)\n’ +
’ at tryCatch (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45:16)\n’ +
’ at Generator. (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133:17)\n’ +
’ at Generator.next (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74:21)\n’ +
’ at asyncGeneratorStep (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:17)\n’ +
’ at _next (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/asyncToGenerator.js:17:9)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:7\n’ +
’ at new Promise ()\n’ +
’ at apply (/home/ubuntu/hotelsconnect2411-api/node_modules/@babel/runtime/helpers/asyncToGenerator.js:14:12)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/src/routes/forest.js:52:2\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/route.js:149:13)\n’ +
’ at Route.dispatch (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/route.js:119:3)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:284:15\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at Function.handle (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:175:3)\n’ +
’ at router (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:47:12)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at cors (/home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:188:7)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:224:17\n’ +
’ at originCallback (/home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:214:15)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:219:13\n’ +
’ at optionsCallback (/home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:199:9)\n’ +
’ at corsMiddleware (/home/ubuntu/hotelsconnect2411-api/node_modules/cors/lib/index.js:204:7)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at compression (/home/ubuntu/hotelsconnect2411-api/node_modules/compression/index.js:215:5)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at urlencodedParser (/home/ubuntu/hotelsconnect2411-api/node_modules/body-parser/lib/types/urlencoded.js:94:7)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at jsonParser (/home/ubuntu/hotelsconnect2411-api/node_modules/body-parser/lib/types/json.js:113:7)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at logger (/home/ubuntu/hotelsconnect2411-api/node_modules/morgan/index.js:144:5)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at expressInit (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/middleware/init.js:40:5)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at query (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/middleware/query.js:45:5)\n’ +
’ at Layer.handle [as handle_request] (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/layer.js:95:5)\n’ +
’ at trim_prefix (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:328:13)\n’ +
’ at /home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:286:9\n’ +
’ at Function.process_params (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:346:12)\n’ +
’ at next (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:280:10)\n’ +
’ at Function.handle (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/router/index.js:175:3)\n’ +
’ at Function.handle (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/application.js:181:10)\n’ +
’ at Server.app (/home/ubuntu/hotelsconnect2411-api/node_modules/express/lib/express.js:39:9)\n’ +
’ at Server.emit (node:events:517:28)\n’ +
’ at Server.emit (node:domain:489:12)\n’ +
’ at parserOnIncoming (node:_http_server:1130:12)\n’ +
’ at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)’
}
GET /forest/authentication/callback?code=0e2Wvs9R7KyFBkkpEECUWcKSRgx6cEwz25E6sCu-0osev1j06OZgoCLvvcfFBYw3&state=%7B%22renderingId%22%3A124692%7D 500 7.540 ms - 102
GET / 200 0.407 ms - 52
GET / 200 0.967 ms - 52
Scheduler: Running clean-up of active user check-ins.
GET / 200 0.761 ms - 52
GET / 200 0.310 ms - 52
Scheduler: Running clean-up of active user check-ins.
GET / 200 0.473 ms - 52
GET / 200 0.326 ms - 52
Scheduler: Running clean-up of active user check-ins.
GET / 200 0.376 ms - 52
GET / 200 0.308 ms - 52
Scheduler: Running clean-up of active user check-ins.

OK we are logged in…we had bad authentication routes…just deleted them and it worked

2 Likes