While I upgrade forest-express-sequelize I have a error with liana/v3/permissions
Expected behavior
Curl https://api.forestadmin.com/liana/v3/permissions?renderingId=60364 send a
{
"errors": [
{
"status": 500,
"detail": "[Fri May 07 2021 13:17:47 GMT+0000 (Coordinated Universal Time)] Unexpected Error"
}
]
}
And I see this error on my log server
2021-05-07T13:10:57.243210+00:00 app[web.1]: e[31m[forest] 🌳🌳🌳 Permissions error: Forest server request error: Internal Server Errore[39m
2021-05-07T13:10:57.243228+00:00 app[web.1]: e[31m{e[39m
2021-05-07T13:10:57.243229+00:00 app[web.1]: e[31m "jse_shortmsg": "Permissions error",e[39m
2021-05-07T13:10:57.243229+00:00 app[web.1]: e[31m "jse_cause": {e[39m
2021-05-07T13:10:57.243230+00:00 app[web.1]: e[31m "jse_shortmsg": "Forest server request error",e[39m
2021-05-07T13:10:57.243230+00:00 app[web.1]: e[31m "jse_cause": {e[39m
2021-05-07T13:10:57.243231+00:00 app[web.1]: e[31m "status": 500,e[39m
2021-05-07T13:10:57.243231+00:00 app[web.1]: e[31m "response": {e[39m
2021-05-07T13:10:57.243231+00:00 app[web.1]: e[31m "req": {e[39m
2021-05-07T13:10:57.243232+00:00 app[web.1]: e[31m "method": "GET",e[39m
2021-05-07T13:10:57.243232+00:00 app[web.1]: e[31m "url": "https://api.forestadmin.com/liana/v3/permissions?renderingId=60364",e[39m
2021-05-07T13:10:57.243233+00:00 app[web.1]: e[31m "headers": {e[39m
2021-05-07T13:10:57.243252+00:00 app[web.1]: e[31m "forest-secret-key": "b7605693d917b004ec3a4fb39e9ce4a50d407857e46ac094fdd534ed9bcc4115"e[39m
2021-05-07T13:10:57.243252+00:00 app[web.1]: e[31m }e[39m
2021-05-07T13:10:57.243253+00:00 app[web.1]: e[31m },e[39m
2021-05-07T13:10:57.243253+00:00 app[web.1]: e[31m "header": {e[39m
2021-05-07T13:10:57.243254+00:00 app[web.1]: e[31m "server": "Cowboy",e[39m
2021-05-07T13:10:57.243254+00:00 app[web.1]: e[31m "connection": "close",e[39m
2021-05-07T13:10:57.243255+00:00 app[web.1]: e[31m "x-dns-prefetch-control": "off",e[39m
2021-05-07T13:10:57.243255+00:00 app[web.1]: e[31m "x-frame-options": "SAMEORIGIN",e[39m
2021-05-07T13:10:57.243255+00:00 app[web.1]: e[31m "strict-transport-security": "max-age=15552000; includeSubDomains",e[39m
2021-05-07T13:10:57.243256+00:00 app[web.1]: e[31m "x-download-options": "noopen",e[39m
2021-05-07T13:10:57.243256+00:00 app[web.1]: e[31m "x-content-type-options": "nosniff",e[39m
2021-05-07T13:10:57.243256+00:00 app[web.1]: e[31m "x-xss-protection": "1; mode=block",e[39m
2021-05-07T13:10:57.243257+00:00 app[web.1]: e[31m "content-type": "application/json; charset=utf-8",e[39m
2021-05-07T13:10:57.243257+00:00 app[web.1]: e[31m "content-length": "120",e[39m
2021-05-07T13:10:57.243257+00:00 app[web.1]: e[31m "etag": "W/\"78-Nf5N+cfIDRfMAhDm40N4t5LPS60\"",e[39m
2021-05-07T13:10:57.243258+00:00 app[web.1]: e[31m "vary": "Accept-Encoding",e[39m
2021-05-07T13:10:57.243258+00:00 app[web.1]: e[31m "date": "Fri, 07 May 2021 13:10:57 GMT",e[39m
2021-05-07T13:10:57.243258+00:00 app[web.1]: e[31m "via": "1.1 vegur"e[39m
2021-05-07T13:10:57.243259+00:00 app[web.1]: e[31m },e[39m
2021-05-07T13:10:57.243259+00:00 app[web.1]: e[31m "status": 500,e[39m
2021-05-07T13:10:57.243271+00:00 app[web.1]: e[31m "text": "{\"errors\":[{\"status\":500,\"detail\":\"[Fri May 07 2021 13:10:57 GMT+0000 (Coordinated Universal Time)] Unexpected Error\"}]}"e[39m
2021-05-07T13:10:57.243272+00:00 app[web.1]: e[31m }e[39m
2021-05-07T13:10:57.243272+00:00 app[web.1]: e[31m },e[39m
2021-05-07T13:10:57.243272+00:00 app[web.1]: e[31m "jse_info": {},e[39m
2021-05-07T13:10:57.243273+00:00 app[web.1]: e[31m "message": "Forest server request error: Internal Server Error"e[39m
2021-05-07T13:10:57.243273+00:00 app[web.1]: e[31m },e[39m
2021-05-07T13:10:57.243274+00:00 app[web.1]: e[31m "jse_info": {}e[39m
2021-05-07T13:10:57.243274+00:00 app[web.1]: e[31m}e[39m
But it’s ok with liana/v2
curl https://api.forestadmin.com/liana/v2/permissions?renderingId=60364 it’s ok
I check and I correctly change my liana init
app.use(
await Liana.init({
configDir: path.join(__dirname, "../forest"),
envSecret: process.env.FOREST_ENV_SECRET,
authSecret: process.env.FOREST_AUTH_SECRET,
objectMapping,
connections,
})
);
Any idea ?
- Package Version: “forest-express-sequelize”: “^7.0.0”,
- Express Version: “express”: “~4.16.3”,
- Sequelize Version: “sequelize”: “~5.15.1”
- Database Dialect: PG
- Database Version: “pg”: “~6.1.0”,
- Project Name: Memorizer