Error while setting cookie in server connect

Wappler Version : 3.8.3
Operating System : Windows 10
Server Model: Nodejs
Database Type:
Hosting Type: Docker

Expected behavior

What do you think should happen?

Cookie should be set in server connect when using the set cookie function

Actual behavior

What actually happens?

I am getting this error :

message: "this.setcookie is not a function"
stack: "TypeError: this.setcookie is not a function↵ at App.setcookie (C:\Users.....\lib\modules\core.js:123:14)↵ at App._exec (C:\Users.....\lib\core\app.js:429:57)↵ at App._exec (C:\Users.....\lib\core\app.js:400:28)↵ at processTicksAndRejections (internal/process/task_queues.js:97:5)↵ at async App.exec (C:\Users.....\lib\core\app.js:369:9)↵ at async App.define (C:\Users.....\lib\core\app.js:359:9)"
status: "500"

How to reproduce

Add a simple set cookie action in server connect and set a value to it like this

image

Same here, Server Connect, Set Cookie in Node: status: “500”

Any idea?

Unzip the file in lib/modules.

core.zip (1.5 KB)

1 Like

Got it working now, thanks Patrick.

Is there any difference between the cookies on server connect and the cookies set from app connect? because I thought that the cookies that are set on server side cannot be seen from the console in cookie storage, but in my case I can see the cookies from client side

Fixed in Wappler 3.9.2

1 Like

This topic was automatically closed after 30 hours. New replies are no longer allowed.