Hello,
I am trying to get the total issues number from a project using this API call.
But using the same call with the same Authorization headers inside a automation with the "send web request" option fails.
I have no clue why the endpoint works correctly when done with an external tool and it fails when done inside an automation using the web request option.
Any idea?
Thanks in advance.
I do think this is an authenticatoin issue even though you mentioned your are using the same headers. Can you doubble check that?
You need this format: <email>:<api_token>. You have to base64 encode this whole string.
And then you use it in the header: "Authorization: Basic <base64 string>
I sometimes forget the Basic keyword in front of my string.
You are right, it was an authentication issue.
The problem was that I wrote base rather than Basic, probably some mistake when copying and pasting at some point of the test.
Thanks so much
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello! can you give me some suggestions?
I'm getting an error message and I can't figure it out
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Melissa,
You can not use your username and token in plain text like that in the Authorization header. You need to send the username:password combination in base64 format.
You can use this site for example: https://www.base64encode.org/
If your username is JaneDoe and your token is Secret123 you need to enter JaneDoe:Secret123. This becomes SmFuZURvZTpTZWNyZXQxMjM= in base64 format.
Your header value is then: Basic SmFuZURvZTpTZWNyZXQxMjM= and not Basic JaneDoe:Secret123
Something else: you should not include the colons (:) in the header names.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.