Hello,
i get from atlassian jira cloud always the error message 401.
If i call the link in the browser it works, if i call the in c# or rest extensions i get this error
Header Authorization Basic user@mail:API_Token
Content-Type application/json
Whats my mistake?
BR, Noel
My solution is deactivating the firewall and execute visual studio with administrator privilegs.
Now it works.
Hello Андрей,
yes, this was the problem.
But now every response is empty.
If i call the url in the browser, i get many informations...
Do you know why?
BR, Noel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately I don't know C#. Maybe some wrong method to get response? In browser and code are You use same account?
For groovy, next return response body:
connection.content.text
Try check in service without auth. For example:
https://jsonplaceholder.typicode.com/posts/42
B.R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my response is 80% empty....
sometimes i get a little response like this:
I´m very confussed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Noel Krull
Basic user@mail:API_Token
Are You code to base64?
I use groovy:
...
this.authString = "${username}:${password}".getBytes().encodeBase64().toString()
...
connection.addRequestProperty("Authorization", "Basic ${this.authString}")
B.R.
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.