Set cookie error when adding "Expires"

V4.8.2 - NodeJs - mac

When putting a number in “expires” in a set cookie step, there is an error. No error when “expires” is empty:

{
  "status": "500",
  "message": "option expires is invalid",
  "stack": "TypeError: option expires is invalid\n    at Object.serialize (/opt/node_app/node_modules/express/node_modules/cookie/index.js:149:13)\n    at ServerResponse.res.cookie (/opt/node_app/node_modules/express/lib/response.js:862:36)\n    at App.setCookie (/opt/node_app/lib/core/app.js:106:26)\n    at App.setcookie (/opt/node_app/lib/modules/core.js:157:14)\n    at App._exec (/opt/node_app/lib/core/app.js:487:57)\n    at App._exec (/opt/node_app/lib/core/app.js:458:28)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at async App.exec (/opt/node_app/lib/core/app.js:427:9)\n    at async App.define (/opt/node_app/lib/core/app.js:417:9)"
}

Please test this update: core.zip (2.0 KB) Unzip to lib/modules.

1 Like

Works, thanks!

This has been fixed in Wappler 4.8.3

This topic was automatically closed after 2 days. New replies are no longer allowed.