Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Rest API; Request works in postman but not HttpClient

Hello, everyone!

I am currently encountering a strange issue when trying to use the JIRA API and basic authentication.

I have made an http request that works successfully in postman and from my app in angularjs:

However, I have now tried to replicate this request in my c# code for my web api and the request never seems to work. Sending the request from here doesn't reflect any use of the api token when checking my api tokens on the JIRA website.
I have replaced my base64encoded password here with $$$$ just for this post.

My response is always:response.png
Why would this request be working in postman but not in my c# code with httpclient? I have tried re-writing this many different ways.

1 answer

0 votes
Neil Atlassian Team Aug 12, 2022

Hi @Spencer Poole. Welcome also to the user community!  :-)  Just an FYI, I saw your post on the Atlassian Developer Community forums earlier today, and sent over a suggestion to help debug the problem you're having:

p.s. Side note: be sure to change the URL in your C# code to call https, not http.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events