Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Object reference error from jiraClient.Issues.GetIssuesFromJqlAsync

Sanad Baranwal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2020

Getting Object reference error with the below request. (_jiraClient is properly created with valid credentials.)

Note: the code was working fine couple of days back.

var searchOptions = new IssueSearchOptions("labels=XYZ");

var result = _jiraClient.Issues.GetIssuesFromJqlAsync(searchOptions);

 

Message: Object reference not set to an instance of an object.

Stacktrace:

at Atlassian.Jira.Remote.SingleObjectCustomFieldValueSerializer.FromJson(JToken json)
at Atlassian.Jira.Remote.RemoteIssueJsonConverter.<GetCustomFieldValuesFromObject>b__9_1(JProperty field)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.ToArray()
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Atlassian.Jira.Remote.RemoteIssueJsonConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Atlassian.Jira.Remote.IssueService.<>c__DisplayClass20_0.<GetIssuesFromJqlAsync>b__2(JObject issueJson)
at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at System.Linq.SystemCore_EnumerableDebugView`1.get_Items()

7 answers

1 vote
Derek Shehata
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 28, 2020
0 votes
LacimaDaniel March 2, 2020

Switching to Atlassian.SDK v12.1.0-beta01 fixed this issue for me.

0 votes
Ryan Krinjeck
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 28, 2020

I am also experiencing the same issue when using the SDK.  Is there any chance of at least getting a reply on status for the issue?

0 votes
Sergey Baburin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 25, 2020

The same started to happen 02/24 to me.

A method which fails is jiraRest.Issues.Queryable.FirstOrDefault(i => i.Key == "some key"), where jiraRest is Jira obj.

Update to the latest Atlassian.SDK.Signed version 10.8.0 didn't help.

0 votes
Api Jira
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 24, 2020

Any Solutions Here ?

0 votes
Vishwanath February 22, 2020

I'm also getting the same error. This was working a couple of days ago. Please someone suggest how to fix ASAP. 

It will be a big problem if the issue is not resolved

0 votes
Michelle Allen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2020

I'm getting the same error. This was working a couple of days ago.

Suggest an answer

Log in or Sign up to answer