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

UniversalGameController throws EntityDoesNotExistException for non-existent game #783

Closed
HolisticDeveloper opened this issue Jun 3, 2023 · 0 comments
Assignees
Milestone

Comments

@HolisticDeveloper
Copy link
Contributor

HolisticDeveloper commented Jun 3, 2023

When a universal game details URL points to a non-existent game, the page throws an EntityDoesNotExistException rather than returning a 404.

Example: https://nemestats.com/UniversalGame/Details/809

View details in Rollbar: https://rollbar.com/jakejgordon/NemeStats/items/3503/

Traceback (most recent call last):
  File "C:\repos\NemeStats\Source\BusinessLogic\Logic\BoardGameGeekGameDefinitions\BoardGameGeekGameDefinitionInfoRetriever.cs", line 42, in GetFromSource(System.Int32 boardGameGeekGameDefinitionId)
  File "C:\repos\NemeStats\Source\BusinessLogic\Caching\Cacheable.cs", line 25, in GetResults(TInput inputParameter)
  File "C:\repos\NemeStats\Source\BusinessLogic\Logic\BoardGameGeekGameDefinitions\UniversalGameRetriever.cs", line 44, in GetBoardGameGeekGameSummary(System.Int32 boardGameGeekGameDefinitionId, BusinessLogic.Models.User.ApplicationUser currentUser, System.Int32 numberOfRecentlyPlayedGamesToRetrieve)
  File "C:\repos\NemeStats\Source\UI\Controllers\UniversalGameController.cs", line 49, in Details(System.Int32 id, BusinessLogic.Models.User.ApplicationUser currentUser)
  File "(unknown)", line 147, in lambda_method(System.Runtime.CompilerServices.Closure , System.Web.Mvc.ControllerBase , System.Object[] )
  File "System.Web.Mvc.ActionMethodDispatcher", line unknown, in Execute(System.Web.Mvc.ControllerBase controller, System.Object[] parameters)
  File "System.Web.Mvc.ReflectedActionDescriptor", line 81, in Execute(System.Web.Mvc.ControllerContext controllerContext, System.Collections.Generic.IDictionary`2[System.String,System.Object] parameters)
  File "System.Web.Mvc.ControllerActionInvoker", line unknown, in InvokeActionMethod(System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionDescriptor actionDescriptor, System.Collections.Generic.IDictionary`2[System.String,System.Object] parameters)
  File "System.Web.Mvc.Async.AsyncControllerActionInvoker", line unknown, in <BeginInvokeSynchronousActionMethod>b__39(System.IAsyncResult asyncResult, System.Web.Mvc.Async.AsyncControllerActionInvoker+ActionInvocation innerInvokeState)
  File "System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`2", line unknown, in CallEndDelegate(System.IAsyncResult asyncResult)
  File "System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResultBase`1", line 41, in End
  File "System.Web.Mvc.Async.AsyncControllerActionInvoker", line unknown, in EndInvokeActionMethod(System.IAsyncResult asyncResult)
  File "System.Web.Mvc.Async.AsyncControllerActionInvoker+AsyncInvocationWithFilters", line 20, in <InvokeActionMethodFilterAsynchronouslyRecursive>b__3d
  File "System.Web.Mvc.Async.AsyncControllerActionInvoker+AsyncInvocationWithFilters+<>c__DisplayClass46", line 134, in <InvokeActionMethodFilterAsynchronouslyRecursive>b__3f
  File "System.Web.Mvc.Async.AsyncControllerActionInvoker+AsyncInvocationWithFilters+<>c__DisplayClass46", line 134, in <InvokeActionMethodFilterAsynchronouslyRecursive>b__3f
  File "System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass33", line unknown, in <BeginInvokeActionMethodWithFilters>b__32(System.IAsyncResult asyncResult)
  File "System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1", line unknown, in CallEndDelegate(System.IAsyncResult asyncResult)
  File "System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResultBase`1", line 41, in End
  File "System.Web.Mvc.Async.AsyncControllerActionInvoker", line unknown, in EndInvokeActionMethodWithFilters(System.IAsyncResult asyncResult)
  File "System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass21+<>c__DisplayClass2b", line unknown, in <BeginInvokeAction>b__1c
  File "System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass21", line unknown, in <BeginInvokeAction>b__1e(System.IAsyncResult asyncResult)
EntityDoesNotExistException`1: Entity of type 'BusinessLogic.Models.BoardGameGeekGameDefinition' with Id '809' does not exist.
@HolisticDeveloper HolisticDeveloper added this to the maintenance-next milestone Jun 3, 2023
@HolisticDeveloper HolisticDeveloper self-assigned this Jun 3, 2023
HolisticDeveloper added a commit that referenced this issue Jun 3, 2023
…ty-does-not-exist

fix EntityDoesNotExistException for non-existent game #783
@HolisticDeveloper HolisticDeveloper changed the title EntityDoesNotExistException`1: Entity of type 'BusinessLogic.Models.BoardGameGeekGameDefinition' with Id '230801' does not exist. UniversalGameController throws EntityDoesNotExistException for non-existent game Jun 3, 2023
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