botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

InternalServerError - Bot & QnA Maker

Open andrzejsobczak opened this issue 9 years ago • 10 comments

I would like to ask for your help in the following situation:

  1. I created a knowledge sharing service from the knowledge base using the QnA Maker (I created question and answer base and it worked very well).

  2. Then, using the standard steps described in the Bot Framework documentation, without the slightest problem I generated a bot (in C#, I used a template to connect it to a previously created knowledge base in the QnA Maker), and the bot worked without any problem. It was visible at https://dev.botframework.com/ (after logging in to my bots), it responded correctly to the questions asked, clicking on “test connection to your bot” gave the answer “Accepted” – so everything was fine.

  3. Since then, I have not made any changes to the automatically generated code. After a few hours, the bot stopped working – i.e. the source code was missing from the Azure portal. Error like the one in the attached screenshot popped up.

image

Currently, at https://dev.botframework.com (after logging in to my bots), clicking on “Test” gives the following answer:

InternalServerError

Runtime Error
<body bgcolor="white">

        <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>

        <h2> <i>Runtime Error</i> </h2></span>

        <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

        <b> Description: </b>An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
        <br><br>

        <b>Details:</b> To enable the details of this specific error message to be viewable on remote machines, please create a &lt;customErrors&gt; tag within a &quot;web.config&quot; configuration file located in the root directory of the current web application. This &lt;customErrors&gt; tag should then have its &quot;mode&quot; attribute set to &quot;Off&quot;.<br><br>

        <table width=100% bgcolor="#ffffcc">
           <tr>
              <td>
                  <code><pre>

<!-- Web.Config Configuration File -->

<configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>

              </td>
           </tr>
        </table>

        <br>

        <b>Notes:</b> The current error page you are seeing can be replaced by a custom error page by modifying the &quot;defaultRedirect&quot; attribute of the application&#39;s &lt;customErrors&gt; configuration tag to point to a custom error page URL.<br><br>

        <table width=100% bgcolor="#ffffcc">
           <tr>
              <td>
                  <code><pre>

<!-- Web.Config Configuration File -->

<configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>

  1. Thinking that something magically broke – I removed everything and repeated the whole step 2 (I generated a new bot by connecting it to the service shared by QnA Maker), and the situation in step 3 repeated.

I am working on the standard Azure settings, I did not change anything in the code and it breaks itself (?). I will be grateful for help.

PS. I am using paid Azure subscription.

Best Regards, Andrzej

andrzejsobczak avatar Apr 07 '17 12:04 andrzejsobczak

Hey andrzejsobczak,

I apologize for not responding sooner. Your situation sounds frustrating.

The developers believe its a bug on our side. They've been actively investigating and intend on releasing a fix as soon as possible. Thank you for your patience thus far.

We will leave this issue open until the fix is released.

Peace, Eric

EricDahlvang avatar Apr 08 '17 04:04 EricDahlvang

The issue is currently being addressed.

EricDahlvang avatar Apr 08 '17 05:04 EricDahlvang

Thank you for reporting this.

I'm closing the issue because its been addressed. If something like this happens again, please re-open it.

EricDahlvang avatar Apr 09 '17 17:04 EricDahlvang

Due to similarities between issues, reopening this and referencing issue #2577.

stevengum avatar Apr 09 '17 20:04 stevengum

Any news/updates?

DonSchenck avatar Apr 13 '17 16:04 DonSchenck

Hey DonSchenck,

The issue has been addressed, but the fix involves a two part roll-out to production. One piece was released last night, and newly created bots will no longer have this issue. However, there's another part to the fix that is scheduled to be released this morning. Once that is released, and verified, I'll close this issue.

Thanks for your patience.

EricDahlvang avatar Apr 13 '17 16:04 EricDahlvang

Terrific news! Thanks!

DonSchenck avatar Apr 13 '17 16:04 DonSchenck

Thank you for reporting this. I'm closing it now since the issue has been resolved. If you have any other problems, please re-open this one, or create a new issue.

EricDahlvang avatar Apr 13 '17 22:04 EricDahlvang

The nightmare has returned. After about a week of correct work again InternalServerError appeared: InternalServerError

Runtime Error

Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

andrzejsobczak avatar Apr 14 '17 22:04 andrzejsobczak

relates to #2603

nwhitmont avatar Apr 18 '17 20:04 nwhitmont