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

Microsoft Bot Framework Emulator unable to connect #5056

Closed
justinas-b opened this issue Jan 10, 2020 · 2 comments · Fixed by #5057
Closed

Microsoft Bot Framework Emulator unable to connect #5056

justinas-b opened this issue Jan 10, 2020 · 2 comments · Fixed by #5057
Labels
type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@justinas-b
Copy link
Contributor

Rasa version: Rasa 1.6.1

Python version: Python 3.7.5

Operating system (windows, osx, ...): OsX

Issue:
When testing chat bot with Microsoft Bot Framework Emulator [Version 4.7.0-96660 (4.7.0-96660.96660)], Rasa throws below error:

> rasa run
2020-01-10 15:33:05 INFO     root  - Starting Rasa server on http://localhost:5005
2020-01-10 15:33:10 INFO     absl  - Entry Point [tensor2tensor.envs.tic_tac_toe_env:TicTacToeEnv] registered with id [T2TEnv-TicTacToeEnv-v0]
2020-01-10 15:33:24 INFO     rasa.core.channels.botframework  - Not received message type
2020-01-10 15:33:35 ERROR    rasa.core.channels.botframework  - Could not get BotFramework token
2020-01-10 15:33:35 ERROR    rasa.core.channels.botframework  - Exception when trying to handle message.Failed to parse: http://localhost:54380v3/conversations/c672c2f1-33ad-11ea-80d3-33aac016e43a|livechat/activities

Please note that part saying to Failed to parse : http://localhost:54380v3/conversations..... I believe this occurs due to fact that Bot Framework Emulator does not but / at the end of serviceUrl: "http://localhost:54380" in it's payload:

{
  "channelData": {
    "clientActivityID": "1578663214742wco867ru71r",
    "clientTimestamp": "2020-01-10T13:33:34.742Z"
  },
  "channelId": "emulator",
  "conversation": {
    "id": "c672c2f1-33ad-11ea-80d3-33aac016e43a|livechat"
  },
  "entities": [
    {
      "requiresBotState": true,
      "supportsListening": true,
      "supportsTts": true,
      "type": "ClientCapabilities"
    }
  ],
  "from": {
    "id": "25eff8db-460a-450f-a98e-be73910fac0c",
    "name": "User",
    "role": "user"
  },
  "id": "ccdaedc0-33ad-11ea-a307-0bf6e7c83078",
  "localTimestamp": "2020-01-10T15:33:34+02:00",
  "locale": "en-US",
  "recipient": {
    "id": "3524d820-33ac-11ea-80d3-33aac016e43a",
    "name": "Bot",
    "role": "bot"
  },
  "serviceUrl": "http://localhost:54380",
  "text": "x",
  "textFormat": "plain",
  "timestamp": "2020-01-10T13:33:34.748Z",
  "type": "message"
}

Command or request that led to error:

rasa run
@justinas-b justinas-b added the type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. label Jan 10, 2020
@justinas-b
Copy link
Contributor Author

Related to #2760

@sara-tagger
Copy link
Collaborator

Thanks for raising this issue, @wochinge will get back to you about it soon✨

Please also check out the docs and the forum in case your issue was raised there too 🤗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants