Skip to content

Microsoft BotFramework Driver doesn't put correct "From" field in outgoing message #470

@nadalizadeh

Description

@nadalizadeh
  • BotMan Version: not sure, 1.5 in composer.json ?
  • PHP Version: 5.6
  • Messaging Service(s): Telegram, Microsoft BotFramework
  • Cache Driver: None

Description:

Observed:

  • Framework receives message from BotFramework, calls the handle function and tries to reply, but the message on BotFramework doesn't get delivered.
  • No error is thrown from the framework and I didn't have any way to know something is going wrong with the framework or not.

Debugged and found that:
Microsoft BotFramework is replying with the following message:

The bot referenced by the 'from' field is unrecognized

Log:

[2017/07/14 11:44:25] botman - matching drivers
[2017/07/14 11:44:25] botman - driver matched request Mpociot\BotMan\Drivers\BotFrameworkDriver
[2017/07/14 11:44:25] botman - start listen
[2017/07/14 11:44:25] botman - received hello
[2017/07/14 11:44:25] botman - POST to https://webchat.botframework.com//v3/conversations/xxxxxxxxxxxxxxxe860f1faf7a205e5a/activities 
--> with parameters --> {"type":"message","text":"Hello yourself.","from":{"id":"TexifyBot"}}
[2017/07/14 11:44:26] botman - response 
{
  "error": {
    "code": "MissingProperty",
    "message": "The bot referenced by the 'from' field is unrecognized"
  }
}
[2017/07/14 11:44:26] botman - finished

Related Issue:
microsoft/botframework-sdk#2450

Steps To Reproduce:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions