thunderclient/thunder-client-support

Cookie header error

Band-Aid opened this issue ยท 4 comments

Describe the bug
I am getting the following error even though I have configured the Cookie header param.
Error when sending request: First argument to setCookie must be a Cookie object or string

To Reproduce

  1. Create a new request
  2. enter any URL
  3. In the header type in Cookie: seesion.jwt=xxxxx
  4. Notice the error
    Error when sending request: First argument to setCookie must be a Cookie object or string
    image

removing the dot in the cookie param does not prompt you with the error
It appears as though the app does not like the dot in between. This previously worked with out any issues.
Something must have changed in how you parse the cookie params

Expected behavior

Platform:

  • OS: Windows 11 (ARM / MacOS ARM
  • vscode version: 1.91.1
  • node version: 20 LTS
  • extension version: 2.27.0

Are you using the free version/paid version/trial:
Paid version

We experienced this too using V2.27.0. @rangav, for now we downgraded to v2.26.1
image

image

Thanks for reporting the bug, will fix it asap.

This bug is fixed in v2.27.3
Please test it and let me know your feedback.

Verified working, thank you @rangav
image

image