Unable to use admin on local getting error "The request to your server either failed or returned invalid data."

Unable to start admin on my local environment

Getting error “The request to your server either failed or returned invalid data.”

Observed behavior

Working fine on deployed production environment

Context

  • Project name: NachamuAdmin
  • Team name: Operations
  • Environment name: Development

“liana”: “forest-express-mongoose”,
“liana_version”: “8.7.7”,
“stack”: {
“database_type”: “MongoDB”,
“engine”: “nodejs”,
“engine_version”: “14.17.4”,
“orm_version”: “5.8.13”
}

I checked for difference on the forestschema file found this:

New:
“meta”: {
“liana”: “forest-express-mongoose”,
“liana_version”: “8.7.7”,
“stack”: {
“database_type”: “MongoDB”,
“engine”: “nodejs”,
“engine_version”: “14.17.4”,
“orm_version”: “5.8.13”
}
}

Old:
“meta”: {
“database_type”: “MongoDB”,
“liana”: “forest-express-mongoose”,
“liana_version”: “7.0.1”,
“engine”: “nodejs”,
“engine_version”: “14.17.4”,
“orm_version”: “5.8.13”
}

Does this has to do with the error?

Hi @aayush-sinha,

Yes this must be linked because the forest-context-url whch is throwing you an error has been added to the CORS in version 8.0.0. Those difference are on your local environments ? You local is on version 8.7.7 or 7.0.1 ?

Local is on 8.7.7
I am no able to change that on forestschema. If I start the server, it updates the meta property to:
“meta”: {
“liana”: “forest-express-mongoose”,
“liana_version”: “8.7.7”,
“stack”: {
“database_type”: “MongoDB”,
“engine”: “nodejs”,
“engine_version”: “14.17.4”,
“orm_version”: “5.8.13”
}
}

This is fixed for me added ‘Forest-Context-Url’ in allowedHeaders.

1 Like

Okey perfect, sorry I did not thought about sharing the upgrade guide which clearly says to add it to your CORS ^^. Glad it’s fixed :pray:

1 Like