Open
Description
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:
- Create resource group
- Create Bot Channel Registration
- Create Cognitive Account
- Immediately create Bot Direct Line Speech after the cognitive account is created successfully
- Until now, you will see API failed and threw above error message