Expected behavior
Forest to connect to our production service.
Actual behavior
I see requests coming in from forest’s portal, but there is no response from our server running the app. See logs below to view some example partially served requests. No errors show up on the serverside, either. The only errors are on app.forest.
Failure Logs
Here are the logs from the server. Oddly, there are no errors – but you can see that none of the requests are responding.
17:17:32 0|index | Fetching app secret... prod/rupie/db
17:17:32 0|index | info Secret prod/rupie/db fetch success!
17:17:35 0|index | Your application is listening on port 8085.
17:17:36 0|index | Your admin panel is available here: https://app.forestadmin.com/projects
17:18:38 0|index | POST /forest/stats/Job - - - - ms
17:18:38 0|index | POST /forest/stats/Gig - - - - ms
17:18:38 0|index | POST /forest/stats/Gig - - - - ms
17:18:38 0|index | POST /forest/stats/User - - - - ms
17:18:38 0|index | POST /forest/stats/Team - - - - ms
17:18:38 0|index | POST /forest/stats/User - - - - ms
17:18:38 0|index | POST /forest/stats/Job - - - - ms
17:18:38 0|index | POST /forest/stats/Team - - - - ms
17:19:08 0|index | OPTIONS /forest/Gig?fields%5BGig%5D=id%2Cname%2Cstatus%2COwner%2Cproject%2CshortDescription%2CnegotiableFields%2CminWorkerCount%2CmaxWorkerCount%2Cdescription%2CupdatedAt%2CcreatedAt%2CdeletedAt%2CtermsId&fields%5BOwner%5D=username&fields%5Bproject%5D=id&page%5Bnumber%5D=1&page%5Bsize%5D=15&searchExtended=0&sort=-id&timezone=America%2FLos_Angeles 204 0 - 0.582 ms
17:19:08 0|index | OPTIONS /forest/Gig/count?fields%5BGig%5D=id%2Cname%2Cstatus%2COwner%2Cproject%2CshortDescription%2CnegotiableFields%2CminWorkerCount%2CmaxWorkerCount%2Cdescription%2CupdatedAt%2CcreatedAt%2CdeletedAt%2CtermsId&fields%5BOwner%5D=username&fields%5Bproject%5D=id&searchExtended=0&timezone=America%2FLos_Angeles 204 0 - 0.179 ms
17:19:11 0|index | GET /forest/Gig?fields%5BGig%5D=id%2Cname%2Cstatus%2COwner%2Cproject%2CshortDescription%2CnegotiableFields%2CminWorkerCount%2CmaxWorkerCount%2Cdescription%2CupdatedAt%2CcreatedAt%2CdeletedAt%2CtermsId&fields%5BOwner%5D=username&fields%5Bproject%5D=id&page%5Bnumber%5D=1&page%5Bsize%5D=15&searchExtended=0&sort=-id&timezone=America%2FLos_Angeles - - - - ms
17:19:11 0|index | GET /forest/Gig/count?fields%5BGig%5D=id%2Cname%2Cstatus%2COwner%2Cproject%2CshortDescription%2CnegotiableFields%2CminWorkerCount%2CmaxWorkerCount%2Cdescription%2CupdatedAt%2CcreatedAt%2CdeletedAt%2CtermsId&fields%5BOwner%5D=username&fields%5Bproject%5D=id&searchExtended=0&timezone=America%2FLos_Angeles - - - - ms
17:19:16 0|index | OPTIONS /forest/SubscriptionPlan?fields%5BSubscriptionPlan%5D=createdAt%2CdeletedAt%2Cid%2Cmeta%2Cname%2CplanId%2CplanValues%2Cstatus%2CtrialDays%2CupdatedAt&page%5Bnumber%5D=1&page%5Bsize%5D=15&searchExtended=0&sort=-id&timezone=America%2FLos_Angeles 204 0 - 0.237 ms
17:19:16 0|index | OPTIONS /forest/SubscriptionPlan/count?fields%5BSubscriptionPlan%5D=createdAt%2CdeletedAt%2Cid%2Cmeta%2Cname%2CplanId%2CplanValues%2Cstatus%2CtrialDays%2CupdatedAt&searchExtended=0&timezone=America%2FLos_Angeles 204 0 - 0.175 ms
17:19:19 0|index | GET /forest/SubscriptionPlan?fields%5BSubscriptionPlan%5D=createdAt%2CdeletedAt%2Cid%2Cmeta%2Cname%2CplanId%2CplanValues%2Cstatus%2CtrialDays%2CupdatedAt&page%5Bnumber%5D=1&page%5Bsize%5D=15&searchExtended=0&sort=-id&timezone=America%2FLos_Angeles - - - - ms
17:19:19 0|index | GET /forest/SubscriptionPlan/count?fields%5BSubscriptionPlan%5D=createdAt%2CdeletedAt%2Cid%2Cmeta%2Cname%2CplanId%2CplanValues%2Cstatus%2CtrialDays%2CupdatedAt&searchExtended=0&timezone=America%2FLos_Angeles - - - - ms
17:19:32 0|index | POST /forest/stats/Job - - - - ms
17:19:32 0|index | POST /forest/stats/Team - - - - ms
17:19:32 0|index | POST /forest/stats/Gig - - - - ms
17:19:32 0|index | POST /forest/stats/Team - - - - ms
17:19:32 0|index | POST /forest/stats/User - - - - ms
17:19:32 0|index | POST /forest/stats/User - - - - ms
17:19:32 0|index | POST /forest/stats/Gig - - - - ms
17:19:32 0|index | POST /forest/stats/Job - - - - ms
17:21:02 0|index | GET /forest/Gig?fields%5BGig%5D=id%2Cname%2Cstatus%2COwner%2Cproject%2CshortDescription%2CnegotiableFields%2CminWorkerCount%2CmaxWorkerCount%2Cdescription%2CupdatedAt%2CcreatedAt%2CdeletedAt%2CtermsId&fields%5BOwner%5D=username&fields%5Bproject%5D=id&page%5Bnumber%5D=1&page%5Bsize%5D=15&searchExtended=0&sort=-id&timezone=America%2FLos_Angeles - - - - ms
17:21:02 0|index | GET /forest/Gig/count?fields%5BGig%5D=id%2Cname%2Cstatus%2COwner%2Cproject%2CshortDescription%2CnegotiableFields%2CminWorkerCount%2CmaxWorkerCount%2Cdescription%2CupdatedAt%2CcreatedAt%2CdeletedAt%2CtermsId&fields%5BOwner%5D=username&fields%5Bproject%5D=id&searchExtended=0&timezone=America%2FLos_Angeles - - - - ms
{
"name": "admin",
"version": "0.0.1-beta.34",
"private": true,
"dependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/node": "^7.8.4",
"aws-sdk": "^2.653.0",
"chalk": "~3.0.0",
"cookie-parser": "1.4.5",
"debug": "~4.1.1",
"dotenv-safe": "^8.2.0",
"express": "~4.17.1",
"forest-express-sequelize": "^6.1.2",
"intercom-client": "^2.11.0",
"morgan": "^1.10.0",
"node-json2html": "^1.4.0",
"node-quill-converter": "^0.3.3",
"pg": "~7.18.2",
"pm2": "^4.2.3",
"require-all": "^3.0.0",
"sequelize": "^5.21.5"
}
}
import sequelize from 'models';
import Liana from 'forest-express-sequelize';
import requireAll from 'require-all';
const intercomClient = require('intercom-client');
const chalk = require('chalk');
const path = require('path');
module.exports = async function (app) {
const liana = await Liana.init({
modelsDir: path.join(__dirname, '../models'),
configDir: path.join(__dirname, '../forest'),
envSecret: process.env.FOREST_ENV_SECRET,
authSecret: process.env.FOREST_AUTH_SECRET,
sequelize,
integrations: {
intercom: {
accessToken: process.env.INTERCOM_ACCESS_TOKEN,
intercom: intercomClient,
mapping: ['User.email'],
},
},
});
app.use(liana);
console.log(chalk.cyan('Your admin panel is available here: https://app.forestadmin.com/projects'));
};
Context
Please provide any relevant information about your setup.
- Package Version: 6.1.2
- Express Version: 4.17.1
- Sequelize Version: ~5.21.5
- Database Dialect: pg
- Database Version: 12