Skip to content

Failed to create Bot Direct Line Speech after the cognitive account is created successfully #21242

Open
@neil-yechenwei

Description

@neil-yechenwei

After tested, we found API failed to create Bot Direct Line Speech immediately after the cognitive account is created successfully. But Bot Direct Line Speech can be created successfully at second apply with same request payload.

Though the cognitive account is created successfully and API returned, but seems the primary access key returned by the cognitive account isn't ready yet. So I think it's the bug on Cognitive Account. Cognitive Account service should return "status = 200" when the resource is completely deployed. Could you take a look this issue? Thanks in advance.

Error Message:

botservice.ChannelsClient#Create: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidChannelData" Message="ChannelConverter Exception: DirectLine Speech Channel failed to acquire Cognitive subscription id from tokenEndpoint."

Repro steps:

  1. Create resource group
  2. Create Bot Channel Registration
  3. Create Cognitive Account
  4. Immediately create Bot Direct Line Speech after the cognitive account is created successfully
  5. Until now, you will see API failed and threw above error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bot ServiceService AttentionWorkflow: This issue is responsible by Azure service team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions