Error on startup: "An error occured with the apimap sent to Forest."

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 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 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.


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: ?

It looks like this might have been fixed on the ForestAdmin side as we tried again without changing anything today and it seems to be working fine…

Hi @benwhite,

Thanks you for this feedback.
It’s a good news for you if it’s ok :slight_smile:
Unfortunately, we didn’t change anything on our side.

We maybe miss to fix something, do not hesitate to come back if something is wrong again.

Just for your information, the detail of the error was a missing “attributes” property inside a collection element in the forestadmin-schema.json file.