Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running into 401: Access Denied exception #1

Open
SURYASPR opened this issue Mar 27, 2023 · 0 comments
Open

Running into 401: Access Denied exception #1

SURYASPR opened this issue Mar 27, 2023 · 0 comments

Comments

@SURYASPR
Copy link

Hi, I'm using Atlassian.SDK.AspNetCore nuget package and .NET 7 version. I'm trying to get an issue information using the following code:

using Atlassian.Jira;
var jiraRestClient = Jira.CreateRestClient(url, username, password);
Issue issue = await jiraRestClient.Issues.GetIssueAsync(IssueKey);

But this is running into following exception:
System.Security.Authentication.AuthenticationException
HResult=0x80131501
Message=Response Content:

401: Access Denied


Source=Atlassian.Jira
StackTrace:
at Atlassian.Jira.Remote.JiraRestClient.GetValidJsonFromResponse(IRestRequest request, IRestResponse response)
at Atlassian.Jira.Remote.JiraRestClient.d__11.MoveNext()
at Atlassian.Jira.Remote.IssueService.d__18.MoveNext()

Can you please help me on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant