Skip to content

OperationCanceletedException notification appears in logs #22

Description

@jmderuty

OperationCanceledExceptions should not trigger a log

{
          "location": "scenes/partyMerger/partyMerger-default#0",
          "context": {
            "template": "partyMerger",
            "sceneId": "partyMerger-default",
            "shardId": 0
          },
          "message": "An exception occurred while executing action 'PartyMerger.GetStatus' in controller 'PartyMergerController'.",
          "data": {
            "type": "AggregateException",
            "message": "One or more errors occurred. (A task was canceled.)",
            "frames": [
              "   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)",
              "   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)",
              "   at Stormancer.Server.Plugins.API.ControllerFactory`1.ApiHelpers.<>c.<CompleteReadS2SArgs>b__16_0(Task`1 t) in /_/src/Stormancer.Plugins/Api/Stormancer.Server.Plugins.Api/IControllerFactory.cs:line 762",
              "   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()",
              "   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)",
              "--- End of stack trace from previous location ---",
              "   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)",
              "   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)",
              "--- End of stack trace from previous location ---",
              "   at Stormancer.Server.Plugins.API.ControllerFactory`1.ApiHelpers.ExecuteActionAndSendResultS2S[TReturn](T controller, IS2SRequestContext ctx, IDependencyResolver resolver, Func`3 readArguments, Func`4 executeControllerActionFunction, Func`4 sendResultAction) in /_/src/Stormancer.Plugins/Api/Stormancer.Server.Plugins.Api/IControllerFactory.cs:line 880",
              "   at Stormancer.Server.Plugins.API.ControllerFactory`1.ExecuteS2SRequest(ApiCallContext`1 ctx, Func`4 action) in /_/src/Stormancer.Plugins/Api/Stormancer.Server.Plugins.Api/IControllerFactory.cs:line 270"
            ],
            "innerExceptions": [
              {
                "type": "TaskCanceledException",
                "message": "A task was canceled.",
                "frames": [
                  "   at System.Threading.Tasks.Task.GetExceptions(Boolean includeTaskCanceledExceptions)",
                  "   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)",
                  "   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)",
                  "   at Stormancer.Server.Plugins.API.ControllerFactory`1.ApiHelpers.<>c.<CompleteReadS2SArgs>b__16_0(Task`1 t) in /_/src/Stormancer.Plugins/Api/Stormancer.Server.Plugins.Api/IControllerFactory.cs:line 762",
                  "   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()",
                  "   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)",
                  "   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)",
                  "   at System.Threading.ThreadPoolWorkQueue.Dispatch()",
                  "   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()",
                  "--- End of stack trace from previous location ---"
                ],
                "innerExceptions": []
              }
            ]
          }
        }```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions