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()
I found this workaround that should due until the SDK is updated: https://bitbucket.org/farmas/atlassian.net-sdk/issues/509/jirauser-api-v2-updated-for-gdpr-removing#comment-56177069
Switching to Atlassian.SDK v12.1.0-beta01 fixed this issue for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any Solutions Here ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm getting the same error. This was working a couple of days ago.
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.