thunder-client-support icon indicating copy to clipboard operation
thunder-client-support copied to clipboard

`HTTP Headers` not detect function exported from Custom Filter

Open flixyudh opened this issue 1 year ago • 3 comments

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

flixyudh avatar Feb 14 '24 15:02 flixyudh

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

rangav avatar Feb 15 '24 18:02 rangav

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: @.***>

flixyudh avatar Feb 15 '24 18:02 flixyudh

You can use filter on existing env variables

rangav avatar Feb 15 '24 18:02 rangav