createConnectorClient function is not getting the correct ConnectorFactory #3890
Labels
bug
Indicates an unexpected problem or an unintended behavior.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Version
4.15.0-dev.20210726.c56bbf1
Describe the bug
When using the
OAuthPrompt
in the FunctionalTests pipelines with the newCloudAdapter
overDirectLine
channel, it throws anunhandled error: DialogContextError: connectorFactory.create is not a function
error, causing the next steps to return anUnauthorized
error.This issue is caused due to an incorrect way of retrieving the
ConnectorFactory
from theTurnContext
state, causing the failure of not having the 'create' method.Applying the solution by changing the key to retrieve the factory from the state from
UserTokenClientKey
toConnectorFactoryKey
solved the issue.Additional context
We are updating the FunctionalTests bots to support
CloudAdapter
and this error happened when we executedAuth
functionality overDirectLine
channel.Screenshots
The following image shows the error thrown when trying to create the

ConnectorClient
.The text was updated successfully, but these errors were encountered: