I can't send the set cookie back to my api due to this bug

Retool automatically appends code to my cookie

"cookie": "{{ http2.body.kasse_token }}=s%3AeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtaXRhcmJlaXRlcklkIjoxLCJpYXQiOjE2NzMyOTc4NTgsImV4cCI6MTY3MzQ3MDY1OH0.72Obu-46DAPr8T6KpWVOG0dqnFNVGTC8hhUVPAaWMRs.5PIMs3ff3JyTUjcABepKFcKBVscVYxotpUxv%2Bi7WQys"

{{ http2.body.kasse_token }} should not be in there and that is nowhere in my cookies placed, I only checked to send all cookies, and the cookie does not have that in it if I check it in dev tools

apparently wherever I type "kasse_token" it writes the {{ http2.body.kasse_token }} but I dont know why, I tried COOKIE_kasse_token in the header and I got this error:

  • message:"COOKIE_{{ http2.body.kasse_token }} is not a legal HTTP header name"


this will output in the request
"cookie": "\"{{ http2.body.kasse_token }}\"={{ http2.body.kasse_token }}",

I dont understand

I discovered, each time I added a new variable to the resource, it was added like that to the request, but once I deleted that variable, it didn't delete from the request, it still appears in the request.

Solved it myself, I had to delete the resource and create it again

1 Like