Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-5206

GET API Call returning Error 400 - Cannot get epics. Nullable object must have a value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • 10.123.1
    • 10.122.2
    • REST API
    • None
    • 1
    • Severity 2 - Major
    • No

    Description

      Issue Summary

      Getting an Error 400 when attempting to make a GET call on the Epics endpoint. The response is "Cannot get epics. Nullable object must have a value". This is a 500 disguised as a 400.

      Steps to Reproduce

      1. Using Jira Align Swagger or any other API Client (Postman, Insomnia, etc), run a GET Call on Epics endpoint
        https://[JIRAALIGNINSTANCE].jiraalign.com/rest/align/api/2/Epics
        

      Expected Results

      List/Retrieve all Epics

      Actual Results

      Error 400 - Cannot get epics. Nullable object must have a value

      The below exception as identified:

      Exception: System.InvalidOperationException: Nullable object must have a value. at AgileCraft.Repositories.Helpers.ValueHelper.<>c_DisplayClass50_0.<GetValueScores>b10(Double sum, ScoreCardScore val) in C:\projects\alignapi\AgileCraft.Repositories\Helpers\ValueHelper.cs:line 0 at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func) at AgileCraft.Repositories.Helpers.ValueHelper.<>cDisplayClass50_0.<GetValueScores>gCalculateScore|4(IGrouping`2 scoreCards) in C:\projects\alignapi\AgileCraft.Repositories\Helpers\ValueHelper.cs:line 524 at AgileCraft.Repositories.Helpers.ValueHelper.<>cDisplayClass50_0.<GetValueScores>b_3(IGrouping`2 i) in C:\projects\alignapi\AgileCraft.Repositories\Helpers\ValueHelper.cs:line 506 at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext() at System.Linq.Lookup`2.CreateForJoin(IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer) at System.Linq.Enumerable.GroupJoinIterator[TOuter,TInner,TKey,TResult](IEnumerable`1 outer, IEnumerable`1 inner, Func`2 outerKeySelector, Func`2 innerKeySelector, Func`3 resultSelector, IEqualityComparer`1 comparer)+MoveNext() at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable`1 source, Func`2 collectionSelector, Func`3 resultSelector)+MoveNext() at System.Linq.Enumerable.DistinctIterator`1.MoveNext() at System.Linq.Enumerable.GroupJoinIterator[TOuter,TInner,TKey,TResult](IEnumerable`1 outer, IEnumerable`1 inner, Func`2 outerKeySelector, Func`2 innerKeySelector, Func`3 resultSelector, IEqualityComparer`1 comparer)+MoveNext() at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable`1 source, Func`2 collectionSelector, Func`3 resultSelector)+MoveNext() at System.Linq.Enumerable.DistinctIterator`1.MoveNext() at System.Linq.Enumerable.GroupJoinIterator[TOuter,TInner,TKey,TResult](IEnumerable`1 outer, IEnumerable`1 inner, Func`2 outerKeySelector, Func`2 innerKeySelector, Func`3 resultSelector, IEqualityComparer`1 comparer)+MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at AgileCraft.Services.EpicService.SimpleGet(EpicFilter filter, IDbTransaction transaction) in C:\projects\alignapi\AgileCraft.Services\EpicService.cs:line 701 at AgileCraft.Services.EpicService.Get(EpicFilter filter) in C:\projects\alignapi\AgileCraft.Services\EpicService.cs:line 74 at AgileCraft.Api.Controllers.BaseController`2.Get(String message, String errorMessage, TFilter filter) in C:\projects\alignapi\AgileCraft.Api\Controllers\BaseController.cs:line 131
      

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              fea1a6ef3355 Yannick Genin
              238f0a5fa446 Rodrigo San Vicente
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Backbone Issue Sync