Code Monkey home page Code Monkey logo

Comments (7)

colindooley11 avatar colindooley11 commented on August 20, 2024

The accompanying call on the client application that observes this error is actually quite useful and may serve to suggest how to log the exception

A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. Response status code does not indicate success: 500 (Internal Server Error)

from applicationinsights-owinextensions.

colindooley11 avatar colindooley11 commented on August 20, 2024

This may be my only hope without changing the code:

https://stackoverflow.com/questions/7883052/a-tasks-exceptions-were-not-observed-either-by-waiting-on-the-task-or-accessi

from applicationinsights-owinextensions.

marcinbudny avatar marcinbudny commented on August 20, 2024

Hi Colin,

Could you please say something more about your scenario. Do you control the client? Is the A Task's exception(s) were not observed... error something you see on the client when TaskCanceledException is logged in application insights? Do you also observe this problem when owin extensions are not used?

from applicationinsights-owinextensions.

colindooley11 avatar colindooley11 commented on August 20, 2024

Hi Marcin, Yes we control the client too. I was reluctant to remove the middleware as our CI pipeline and getting us into our PerfTest environment is a little cumbersome (but I agree its a good test) . The "good thing" is that this really is a drop in the ocean and its a fraction of 1 percent of calls. I was just keen to get understanding of what the issue was. (I could fork and add additional logging, but I was reluctant to do this too as "in the main" the middleware works)

I am understanding that our architecture protects us from these failures anyway and will confirm this today, which makes this a known issue but a non issue "as it were".

from applicationinsights-owinextensions.

marcinbudny avatar marcinbudny commented on August 20, 2024

Let me know if you are able to confirm that the middleware is causing the issues.

from applicationinsights-owinextensions.

vinmeet84 avatar vinmeet84 commented on August 20, 2024

@marcinbudny Any fix for this issue. we are still getting Task Cancelled exception. Any pointers would be really helpfull.

from applicationinsights-owinextensions.

marcinbudny avatar marcinbudny commented on August 20, 2024

Moving all discussions to #20

from applicationinsights-owinextensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.