Skip to content

Emulator gets confused when multiple endpoints in a bot file are given the same id #990

@johnataylor

Description

@johnataylor

Version

Bot Framework Emulator (V4 PREVIEW) version: 4.0.0-preview.40025

Describe the bug

If you have the same id for multiple endpoints in the bot file the emulator simply uses the last one in the array in the JSON when it makes calls however it displays the distinct endpoint uri and name.

Of course there is a user bug is in the bot file, however, the behavior of the tool makes this very cryptic.

To Reproduce

  1. Create a bot file with multiple endpoints, for example 3, but give each the same id.
  2. Use the first or second from the displayed list.
  3. Firstly you see multiple displayed in the left hand panel and secondly you see the endpoint uri corresponding to the name you picked, however, under the covers the emulator appears to use the last one added.

Expected behavior

Either detected the error and done display the duplicates. Or detect the error in the file when you open it. Or change the data model such that the user provided id is not critical here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BacklogAn approved issue or bug added into the work queue for evaluation into a future iterationBugYour classic code defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions