thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.61k stars 126 forks source link

`HTTP Headers` not detect function exported from Custom Filter #1477

Closed flixyudh closed 6 months ago

flixyudh commented 6 months ago

Question:

I just tried to use custom filter based on Custom Filter doc but I'm struggling how to use exported function into HTTP Headers like step 3, my value didn't turn into green but the function itself detected in Post Request Filter and Pre Request Filter. Am i doing something wrong? or this feature not available for free version?

Not Detected (didn't turn into green)

Screen Shot 2024-02-14 at 22 37 52

available in Post/Pre Request Filter

Screen Shot 2024-02-14 at 22 39 42

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

rangav commented 6 months ago

can you please follow step 3 correctly https://github.com/rangav/thunder-client-support/blob/master/docs/custom-filters.md#how-to-create-customer-filters

The filter format you are using is wrong

flixyudh commented 6 months ago

Did you mean by adding message | before the function? I've tried it too though but the color still doesn't turn into green

On Fri, 16 Feb 2024, 01:05 Ranga Vadhineni, @.***> wrote:

can you please follow step 3 correctly

https://github.com/rangav/thunder-client-support/blob/master/docs/custom-filters.md#how-to-create-customer-filters

The filter format you are using is wrong

— Reply to this email directly, view it on GitHub https://github.com/rangav/thunder-client-support/issues/1477#issuecomment-1946803387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVZNWMYQMCF3TKTIROSHJTYTZE5LAVCNFSM6AAAAABDIQEMW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBWHAYDGMZYG4 . You are receiving this because you authored the thread.Message ID: @.***>

rangav commented 6 months ago

You can use filter on existing env variables