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

OperationCanceletedException notification appears in logs #22

Open
jmderuty opened this issue Oct 4, 2024 · 0 comments
Open

OperationCanceletedException notification appears in logs #22

jmderuty opened this issue Oct 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jmderuty
Copy link
Member

jmderuty commented Oct 4, 2024

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": []
              }
            ]
          }
        }```
@jmderuty jmderuty added the bug Something isn't working label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant