Jira.CreateRestClient throwing an exception

JeffArmstrong December 5, 2022

I am a newbie Jira user and am trying to create a Jira client via the Atlassian.Jira SDK method 'CreateRestClient' as follows:


public String JiraQuery()
{
Jira jiraClient = Jira.CreateRestClient(txtSrvrAddress.Text, txtEMail.Text, txtAPIToken.Text, new JiraRestClientSettings());
IProjectService iService = jiraClient.Projects;
Task<IEnumerable<Project>> ienumProject = iService.GetProjectsAsync();

return "Hello there!";
}


However, I am getting the following exception when executing the call to CreateRestClient:

JiraException.jpg

I am at a loss as how to solve this problem. Does anyone have any suggestions?

 

Thanks in advance.

 

Jeff Armstrong

Sr. Developer, Deltek Corporation

 

1 answer

1 accepted

1 vote
Answer accepted
Nir Haimov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 5, 2022

Hi @JeffArmstrong 

I would recommend you to simply use Jira with basic http rest api calls, without any 3rd party library.

And you will not have any issue

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events