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

Webchat does not show text from HTTPS Response despite HTTP Code 200 #341

Closed
holgerkyas opened this issue Nov 7, 2017 · 8 comments
Closed
Labels

Comments

@holgerkyas
Copy link

Hello
I'm calling a remote https service via the bot emulator by typing a text into the webchat, here "Hello". The response is coming back correctly with HTTP code 200, but the webchat does not show the response. What did I miss?

Bot Emulator version is 3.5.33

Startup Log
[11:16:23] Emulator listening on http://[::]:63840
[11:16:23] ngrok listening on https://08a7372a.ngrok.io
[11:16:23] ngrok traffic inspector: http://localhost:4040
[11:16:23] Will bypass ngrok for local addresses
[11:16:23] Checking for new version...
[11:16:25] Application is up to date.

I added the screenshots and the json files from the webchat in the bot emulator.

REQUEST
request

RESPONSE
response

REQUEST
{
"type": "message",
"text": "Hello",
"from": {
"id": "default-user",
"name": "User"
},
"locale": "en-US",
"textFormat": "plain",
"timestamp": "2017-11-05T09:49:50.451Z",
"channelData": {
"clientActivityId": "1509875028121.6653353473116588.0"
},
"entities": [
{
"type": "ClientCapabilities",
"requiresBotState": true,
"supportsTts": true,
"supportsListening": true
}
],
"id": "aiend6j0klk6",
"channelId": "emulator",
"localTimestamp": "2017-11-05T10:49:50+01:00",
"recipient": {
"id": "akd08b141n47chj3dc",
"name": "Bot"
},
"conversation": {
"id": "bc4lk7ell0d"
},
"serviceUrl": "https://242f7bb7.ngrok.io"
}

RESPONSE
{
"type": "message",
"from": {
"id": "akd08b141n47chj3dc",
"name": "Bot"
},
"conversation": {
"id": "bc4lk7ell0d",
"name": "Conversation Name"
},
"recipient": {
"id": "default-user",
"name": "User"
},
"channelData": {
"clientActivityId": "1509875028121.6653353473116588.0"
},
"channelId": "emulator",
"text": "I understood: Hello",
"speak": "I understood: Hello",
"inputHint": "expectingInput",
"replyToId": "aiend6j0klk6"
}

thanks
Holger

@eanders-ms
Copy link
Contributor

Interesting! Did you build your bot using the BotBuilder SDK? Or are you generating the reply message manually?

@holgerkyas
Copy link
Author

I used neither one of those two options. The external cloud service I'm calling generates the response.

@eanders-ms
Copy link
Contributor

Can you tell me how you created your bot? What platform or generation tool? I'm wondering because the reply it generated is a little different than what I typically see. It is possibly invalid in some way.

@holgerkyas
Copy link
Author

It‘s a cloud service and I defined the JSON format myself based on what I know about the response format. Would you share the response you see and think it‘s correct? thx

@emadelwany emadelwany added the v3 label May 16, 2018
@cwhitten
Copy link
Member

cwhitten commented Jan 3, 2019

@holgerkyas were you able to resolve your issue?

@cwhitten
Copy link
Member

Closing, stale.

@holgerkyas
Copy link
Author

No, I didn’t.

@cwhitten
Copy link
Member

@holgerkyas can you update your version of the Emulator to v4.2.1 (latest) and see if the issue persists? Happy to reopen if so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants