Api gives JWT decode error

Hi All,

I have an api script. My script got the jwt code from the response header and I can use on the the other APIs as " Set Suite Variable ${cookieJwt} " But there is an API and I want to use this variable on that API. I get the below error.

{“status”:401,“data”:null,“message”:“JWT decode error!”}

Actually I have JWT code, I can see the jwt code as " log to console ${cookieJwt} " But even I get this error.
Searched on google but didn’t find any topic.

That error comes from your backend.
There aren’t enough information to help you with this problem it might depends on how you prepare the requests.