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

[.NET SDK] Bot won't work on self-host IIS: There was an error sending this message to your bot: HTTP status code Unauthorized #4389

Closed
MichaelBartlettGitHub opened this issue Mar 29, 2018 · 10 comments
Assignees

Comments

@MichaelBartlettGitHub
Copy link

MichaelBartlettGitHub commented Mar 29, 2018

Bot Info

Issue Description

Bot works fine locally (via Emulator) and on Azure. Put it on my web hosting platform and cannot get it to work.

Reproduction Steps

  1. Log into Azure (set to EST as is my host)
  2. Find my bot
  3. Click "Test in Web Chat"
  4. Go to Channels after it doesn't work and retrieve error
    The error is: "There was an error sending this message to your bot: HTTP status code Unauthorized"

Expected Behavior

It should respond with an adaptive card

Actual Results

the bot says: couldn't send retry

@MichaelBartlettGitHub
Copy link
Author

I have the bot inside the emulator on my local machine using ngrok and it is working ok although the adaptive cards are not displaying

@stevengum stevengum changed the title Bot won't work on self-host IIS: There was an error sending this message to your bot: HTTP status code Unauthorized [.NET SDK] Bot won't work on self-host IIS: There was an error sending this message to your bot: HTTP status code Unauthorized Mar 30, 2018
@MichaelBartlettGitHub
Copy link
Author

I have been working on this all morning and I now have it working. The server time needed to be adjusted and that seemed to fix the issue. It would be great if it was possible as part of the open source project to return an error explaining this.

@EricDahlvang
Copy link
Member

Hey @MichaelBartlettGitHub

Would you mind explaining how you changed the server time? Meaning, "time was x, and i changed it to y"? Or, did you change the timezone? What change exactly did you make in order to get passed this?

@MichaelBartlettGitHub
Copy link
Author

MichaelBartlettGitHub commented Mar 30, 2018 via email

@EricDahlvang
Copy link
Member

Yes, please forward me all the information you can about this. I'm working with a couple other Bot Framework users hosting on-prem that are having a similar issue. My email address is on my profile: https://github.com/EricDahlvang

Thank you so much!

@MichaelBartlettGitHub
Copy link
Author

MichaelBartlettGitHub commented Mar 30, 2018 via email

@MichaelBartlettGitHub
Copy link
Author

MichaelBartlettGitHub commented Mar 30, 2018 via email

@EricDahlvang
Copy link
Member

Thank you for sharing how you've resolved the issue.

fyi:
I looked at https://webchat.botframework.com/embed/BrinksterBot2?s=zKQrz8iS4gE.cwA.XL0.tDLlqCreWA6xx1Rxz7NO82v6mHbMQf1-FlNK9hUsWTM and noticed that your welcome message isn't accepting input the first time it is displayed. This can be remedied by following the process described here: microsoft/BotFramework-WebChat#536 (there is no option for showing an interactive adaptive card, or dialog, while using the iframed version of webchat)

@MichaelBartlettGitHub
Copy link
Author

MichaelBartlettGitHub commented Apr 2, 2018 via email

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

No branches or pull requests

2 participants