Search code examples
facebookazurebotframeworkslack

Why is my Bot responding with a MethodNotAllowed error?


I just started looking into the new Microsoft Bot Framework.

I started with this sample:

My new bot responds in the emulator (both local version and deployed in Azure), with the default template's sample response "You sent X characters".

Once connected to Slack and FB Messenger, I am getting responses from the Bot, but it's an error message that says "Operation returned an invalid status code 'MethodNotAllowed'"

Before I go any further and add more features, what can I do to troubleshoot and fix this, so that I can get the sample response to work via Slack and FB Messenger?

EDIT: in the dev portal, I don't get any response or error.

Thanks in advance! :-)


Solution

  • Give it 30s to see if you get an internet timeout because it can't find your bot. I'm guessing that maybe http vs https are out of whack on the endpoint or you're missing the /api/messages part of the endpoint URL that comes with the Bot Application template.