Expected behavior
On startup the apimap (which I assume is mostly what is contained in forestadmin-schema.json
) should be updated without error.
Actual behavior
On startup the following error message occurs:
[forest] 🌳🌳🌳 An error occured with the apimap sent to Forest. Please contact support@forestadmin.com for further investigations.
Failure Logs
I took a look into the forest-express codebase and it seems to fail at the ApimapSender class:
POST to https://api.forestadmin.com/forest/apimaps
with header ‘forest-secret-key’ set to the envSecret beginning and ending with 791…0e6
with the response:
{
errors: [
{
status: 500,
detail: '[Wed Sep 08 2021 08:27:07 GMT+0000 (Coordinated Universal Time)] Unexpected Error'
}
]
}
The forestadmin-schema.json appears to be correctly generated and the FOREST_ENV_SECRET that we debugged matches what is in our environment config.
Context
We recently migrated the project to Typescript which seemed to work fine, other than this apimap issue. The difference between our Production forestadmin-schema and the new one is only the metadata values.
- Package Version: 9.2.2
- Express Version: 4.17.1
- Sequelize Version: 8.1.1
- Database Dialect: Postgres
- Database Version: ?