Base solution for your next web application
Open Closed

Get real error on Core + Angular #3005


User avatar
0
drevivo created

a newbie question here I have published the core + angular to two azure websites. When trying different functionality, such as Creating a new tenant, I get "An internal error occurred during your request!" how to i access the real exception


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If this is a UserFriendlyException then real error message should be displayed to you. I assume you have published your app in release mode right ?

    You can also see all error messages in Logs.txt file under "App_Data\Logs" folder.

    Thanks.

  • User Avatar
    0
    fguo created

    I have similar questions. In debug mode, how do I see the real exception message?

    When I add my own applications (e.g. a POST for inserting a record into DB table), I first test it in swagger interface. Some times, I get a message in Response Body: "An internal error occurred during your request!" Usually, this message relates to an exception thrown from Database. It is very helpful for debugging, if I can read the exception message.

    In release mode, I can read the exception details from Log.txt file. How do I find the similar Log file or "real exception message" while testing in swagger?

    Thanks,

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @fguo,

    You should be able to find exception message in Logs.txt file for swagger tests as well. Have you tried it ?

    Thanks.

  • User Avatar
    0
    fguo created

    Got it! In debug mode, the Log.txt is located in Web.Host\bin\Debug\net461\App_Data. It works as I expected.

    Thanks,

  • User Avatar
    0
    ismcagdas created
    Support Team

    Great :)