Hello @GuillaumeGautreau,
So I just put my production env as development so I can get all the logs.
Here is the error:
Jan 28 18:31:10 ip-172-31-28-0 web: Executing (default): SELECT `tipId`, `amount` FROM `tips` AS `tips` LIMIT 0, 100;
Jan 28 18:31:10 ip-172-31-28-0 web: Executing (default): SELECT `tipId`, `amount` FROM `tips` AS `tips` LIMIT 0, 100;
Jan 28 18:31:10 ip-172-31-28-0 web: Executing (default): SELECT `tipId`, `amount` FROM `tips` AS `tips` LIMIT 0, 100;
Jan 28 18:31:10 ip-172-31-28-0 web: Executing (default): SELECT `codeNameId`, `codeName` FROM `codeNames` AS `codeNames` LIMIT 0, 100;
Jan 28 18:31:10 ip-172-31-28-0 web: GET /forest/tips?context%5Brelationship%5D=BelongsTo&context%5Bfield%5D=tip%202&context%5Bcollection%5D=tables&context%5BrecordId%5D=&page%5Bnumber%5D=1&page%5Bsize%5D=100&search=&searchToEdit=false&timezone=Europe%2FParis 304 - - 42.940 ms
Jan 28 18:31:10 ip-172-31-28-0 web: GET /forest/tips?context%5Brelationship%5D=BelongsTo&context%5Bfield%5D=tip%201&context%5Bcollection%5D=tables&context%5BrecordId%5D=&page%5Bnumber%5D=1&page%5Bsize%5D=100&search=&searchToEdit=false&timezone=Europe%2FParis 304 - - 41.992 ms
Jan 28 18:31:10 ip-172-31-28-0 web: GET /forest/tips?context%5Brelationship%5D=BelongsTo&context%5Bfield%5D=tip%203&context%5Bcollection%5D=tables&context%5BrecordId%5D=&page%5Bnumber%5D=1&page%5Bsize%5D=100&search=&searchToEdit=false&timezone=Europe%2FParis 304 - - 41.736 ms
Jan 28 18:31:10 ip-172-31-28-0 web: GET /forest/codeNames?context%5Brelationship%5D=BelongsTo&context%5Bfield%5D=codeName&context%5Bcollection%5D=tables&context%5BrecordId%5D=&page%5Bnumber%5D=1&page%5Bsize%5D=100&search=&searchToEdit=false&timezone=Europe%2FParis 304 - - 43.886 ms
Jan 28 18:31:15 ip-172-31-28-0 web: OPTIONS /forest/restaurants?context%5Brelationship%5D=BelongsTo&context%5Bfield%5D=restaurant&context%5Bcollection%5D=tables&context%5BrecordId%5D=&fields%5Brestaurants%5D=restaurantName&search=gala&searchToEdit=true&timezone=Europe%2FParis 204 0 - 0.179 ms
Jan 28 18:31:15 ip-172-31-28-0 web: Executing (default): SELECT `restaurantId`, `restaurantName`, `restaurantDescription`, `restaurantImagePath`, `cityId` AS `restaurantIdKey`, `cityId` AS `cityIdKey` FROM `restaurants` AS `restaurants` WHERE ((lower(`restaurants`.`restaurantName`) LIKE lower('%gala%') OR lower(`restaurants`.`restaurantDescription`) LIKE lower('%gala%') OR lower(`restaurants`.`restaurantImagePath`) LIKE lower('%gala%'))) LIMIT 0, 10;
Jan 28 18:31:15 ip-172-31-28-0 web: GET /forest/restaurants?context%5Brelationship%5D=BelongsTo&context%5Bfield%5D=restaurant&context%5Bcollection%5D=tables&context%5BrecordId%5D=&fields%5Brestaurants%5D=restaurantName&search=gala&searchToEdit=true&timezone=Europe%2FParis 200 333 - 7.471 ms
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m[forest] 🌳🌳🌳 Unexpected error: related bookings with pk undefined does not exist.#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31mError: related bookings with pk undefined does not exist.#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Object.get (/var/app/current/node_modules/forest-express-sequelize/dist/utils/association-record.js:13:11)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at processTicksAndRejections (internal/process/task_queues.js:97:5)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at runNextTicks (internal/process/task_queues.js:66:3)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at processImmediate (internal/timers.js:434:9)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at async ResourceCreator._getTargetKey (/var/app/current/node_modules/forest-express-sequelize/dist/services/resource-creator.js:35:22)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at async ResourceCreator._makePromisesBeforeSave (/var/app/current/node_modules/forest-express-sequelize/dist/services/resource-creator.js:45:25)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31mFrom previous event:#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at ResourceCreator._handleSave (/var/app/current/node_modules/forest-express-sequelize/dist/services/resource-creator.js:78:15)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at ResourceCreator.perform (/var/app/current/node_modules/forest-express-sequelize/dist/services/resource-creator.js:88:16)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at /var/app/current/node_modules/forest-express/dist/routes/resources.js:76:64#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at tryCatcher (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/util.js:16:23)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromiseFromHandler (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:547:31)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromise (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:604:18)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromise0 (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:649:10)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromises (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:729:18)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._fulfill (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:673:18)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._resolveCallback (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:466:57)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromiseFromHandler (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:559:17)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromise (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:604:18)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromise0 (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:649:10)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromises (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:729:18)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._fulfill (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:673:18)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at PromiseArray._resolve (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:127:19)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at PromiseArray._promiseFulfilled (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:145:14)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at PromiseArray._iterate (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:115:31)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at PromiseArray.init [as _init] (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:79:10)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromise (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:601:21)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromise0 (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:649:10)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromises (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:729:18)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._fulfill (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:673:18)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at PromiseArray._resolve (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:127:19)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at PromiseArray._promiseFulfilled (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:145:14)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromise (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:609:26)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromise0 (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:649:10)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Promise._settlePromises (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:729:18)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at _drainQueueStep (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/async.js:93:12)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at _drainQueue (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/async.js:86:9)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Async._drainQueues (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/async.js:102:5)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at Immediate.Async.drainQueues (/var/app/current/node_modules/forest-express/node_modules/bluebird/js/release/async.js:15:14)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: #033[31m at processImmediate (internal/timers.js:461:21)#033[39m
Jan 28 18:31:29 ip-172-31-28-0 web: POST /forest/tables 500 89 - 20.238 ms
Jan 28 18:31:29 ip-172-31-28-0 web: Executing (default): SELECT `restaurantId`, `restaurantName`, `restaurantDescription`, `restaurantImagePath`, `cityId` AS `restaurantIdKey`, `cityId` AS `cityIdKey` FROM `restaurants` AS `restaurants` WHERE `restaurants`.`restaurantId` = '1';
Jan 28 18:31:29 ip-172-31-28-0 web: Executing (default): SELECT `codeNameId`, `codeName` FROM `codeNames` AS `codeNames` WHERE `codeNames`.`codeNameId` = '1';
Jan 28 18:31:29 ip-172-31-28-0 web: Executing (default): SELECT `tipId`, `amount` FROM `tips` AS `tips` WHERE `tips`.`tipId` = '1';
Jan 28 18:31:29 ip-172-31-28-0 web: Executing (default): SELECT `tipId`, `amount` FROM `tips` AS `tips` WHERE `tips`.`tipId` = '2';
Jan 28 18:31:29 ip-172-31-28-0 web: Executing (default): SELECT `tipId`, `amount` FROM `tips` AS `tips` WHERE `tips`.`tipId` = '3';
And yes I have done everything that @olesyak has suggested me to try out.
Thanks.