BotFramework-Emulator icon indicating copy to clipboard operation
BotFramework-Emulator copied to clipboard

Could not use emulator software because [500] Internal Server Error

Open binhpht opened this issue 9 years ago • 28 comments

Hi, Im not sure this is a new bug or this issue causes by my computer. At this time, I could nt use emulator software to test the bot. Please check if this is new issue. Thanks

binhpht avatar Aug 02 '17 12:08 binhpht

I was having the same problem, updating the emulator to the new version 3.5.31 solved the Internal Server Error, but the bot does not handle the messages sent through this channel. The other channels are working fine, only the emulator produces this problem.

LeonBirk avatar Aug 02 '17 14:08 LeonBirk

@binhpht What version of the emulator are you running? (can be found on the About dialog) Can you please copy/paste your emulator log here?

eanders-ms avatar Aug 02 '17 14:08 eanders-ms

I am having the same problem, since 3-4 hours ago. v.3.5.31 gives 500. on the bot side,

ERROR: ChatConnector: receive - invalid signing key or OpenId metadata document.

pomarc avatar Aug 02 '17 15:08 pomarc

@pomarc, @binhpht Please ensure you are using version v3.5 or greater of the BotBuilder SDK. More details here: https://blog.botframework.com/2017/05/07/Bot-Framework-Auth-Change/

eanders-ms avatar Aug 02 '17 15:08 eanders-ms

Im using bot builder 3.8. It still error now @nwhitmont

binhpht avatar Aug 03 '17 06:08 binhpht

@eanders-MS Hey, the log like this 08:58:38] Application is up to date. [09:01:57] -> POST Request to 'http://127.0.0.1:3979/api/messages' failed: [500] Internal Server Error [09:01:57] -> POST Request to 'http://127.0.0.1:3979/api/messages' failed: [500] Internal Server Error

binhpht avatar Aug 03 '17 06:08 binhpht

Hi, I'have the same issue. Do you have news?

My botbuilder version is 3.8.4

ERROR: ChatConnector: receive - invalid signing key or OpenId metadata document.

vonhan avatar Aug 03 '17 07:08 vonhan

Does anyone can fix this, the issue hasnt solve now

binhpht avatar Aug 03 '17 12:08 binhpht

Does your bot work with other channels (i.e. Skype, Telegram, etc)? I'd like to know if this is emulator-specific, or on the SDK side.

eanders-ms avatar Aug 03 '17 17:08 eanders-ms

I am also getting this error after upgrading to new version of the emulator. Any fix available?

ramil avatar Aug 04 '17 03:08 ramil

@ramil, is your bot using v3.5 or later of the BotBuilder SDK?

@binhpht, @pomarc, what is the MSA AppId of your bot?

eanders-ms avatar Aug 04 '17 03:08 eanders-ms

@eanders-MS my add is MICROSOFT_APP_ID=0383eb89-956b-4b56-a5ec-055108339657 and it works with other channel apart from Emulator. Thanks.

binhpht avatar Aug 04 '17 06:08 binhpht

@eanders-MS I am using "botbuilder": "^3.8.2", my app_id=236c7927-d88d-458c-a62f-fe321fc43faa it works beautifully with fb, skype, telegram, slack. with direct line and web I have a little glitch: the default dialog is started twice, but I think it's unrelated.

pomarc avatar Aug 04 '17 08:08 pomarc

Hi Eric,

My bot version is below. Any luck?

"botbuilder": "^3.8.4",

On Fri, Aug 4, 2017 at 4:19 AM, pomarc [email protected] wrote:

@eanders-MS https://github.com/eanders-ms I am using "botbuilder": "^3.8.2", my app_id=236c7927-d88d-458c-a62f-fe321fc43faa it works beautifully with fb, skype, telegram, slack. with direct line and web I have a little glitch: the default dialog is started twice, but I think it's unrelated.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotFramework-Emulator/issues/262#issuecomment-320188157, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMg77W5zGJhiWnpEbxV04il9qSrc6rXks5sUtQsgaJpZM4OrCIg .

-- Thanks and regards,

Ramilo Segarra

ramil avatar Aug 04 '17 12:08 ramil

I would be grateful if someone on this issue could capture additional information about the error. The error likely contains a message that isn't getting logged to the output window. You should be able to get the error by capturing it in a Fiddler trace. Alternatively, you could clone the Emulator repo, and build/run from source. If someone chooses to take this approach, you'll want to set a breakpoint on around line 61 in ./src/server/botFrameworkAuthentication.ts. Thanks!

eanders-ms avatar Aug 04 '17 20:08 eanders-ms

@eanders-MS image Hey, I dont know which the tab you want to see show I send you this common pic.

binhpht avatar Aug 07 '17 11:08 binhpht

Hi All,

You can downgrade to a lower version of the emulator if you want to continue with your testing. According to the release note there is an update with the auth end point. That code must have affected this. If any who has the time to debug that would be great so we can use the new version. Thanks.

3.5.31 Notable Fixes and Improvements Updated to use v31 auth endpoint. More about that here: https://blog.botframework.com/2017/05/07/Bot-Framework-Auth-Change/

ramil avatar Aug 07 '17 13:08 ramil

Hi @ramil, I confirm it, thanks a lot! I used botframework-emulator 3.5.31, I have substituted it with 3.5.29 version and now all works.

Previously (botframework-emulator 3.5.31) from console debug I received: ERROR: ChatConnector: receive - invalid signing key or OpenId metadata document.

vonhan avatar Aug 07 '17 14:08 vonhan

Everyone: The authentication endpoint used by version 3.5.29 of the emulator will soon stop working entirely.

@vonHan, What version of the BotBuilder SDK are you using? Please check to ensure you're on 3.5 or later.

@binhpht, Thank you for the Fiddler screenshot! What I'd be interested in seeing appears higher up in the capture list. Look for calls to host login.microsoftonline.com that resulted in anything other than a 200 response. Examples: image

eanders-ms avatar Aug 07 '17 16:08 eanders-ms

Ok, I was I able to reproduce this with botbuilder (NodeJS) v3.8.3, but could not repro with v3.9.0. @binhpht and others, can you try updating to 3.9.0?

eanders-ms avatar Aug 07 '17 18:08 eanders-ms