Conversation state unavailable error when adding Twilio/ Infobip service integration
See original GitHub issueDescribe the bug
I have ejected runtime code from composer and adding Twilio adapter to path …\runtime\azurewebapp
Then, trying to test this service
I am getting an error in Core project saying that Not able to find ConversationState: Project : Core File : ComposerBot Method :
public override async Task OnTurnAsync(ITurnContext turnContext, CancellationToken cancellationToken = default(CancellationToken))
{
if (this.removeRecipientMention && turnContext?.Activity?.Type == "message")
{
turnContext.Activity.RemoveRecipientMention();
}
**await this.dialogManager.OnTurnAsync(turnContext, cancellationToken: cancellationToken); **
await this.conversationState.SaveChangesAsync(turnContext, false, cancellationToken);
await this.userState.SaveChangesAsync(turnContext, false, cancellationToken);
}
Version
Release: 1.2.2 SDK runtime packages : 4.11.0
Browser
- Electron distribution
- Chrome
- Safari
- Firefox
- Edge
OS
- macOS
- Windows
- Ubuntu
To Reproduce
Steps to reproduce the behavior: Create sample project on composer and add Twilio controller Please follow this link to integrate twilio service : https://docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-twilio?view=azure-bot-service-4.0#connect-a-bot-to-twilio-using-the-twilio-adapter
- Go to ‘ejected runtime code and add twilio service to AzurewebApp solution as mentioned in above link’
- Click on ‘run --> AzureWebApp solution–> Post a message from Whatsapp’
- Scroll down to ‘…’
- See error
Expected behavior
Conversation state need to be available in this.DialogManager and flow show continue without any issues. finally it need to display welcome message in whatsapp
Screenshots
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (5 by maintainers)
Top GitHub Comments
@garypretty @tonyanziano
It looks like the dialog manager cannot successfully use the conversation ID from Twilio. This could be an SDK problem
or a problem with the Twilio connector service or both. I need to escalate this issue so the appropriate people can look into it.EDIT: It looks like they’re using the Twilio adapter so it wouldn’t be a problem with the connector service.
this helped me solve that issue: https://stackoverflow.com/questions/66498624/bot-framework-composer-slack-adapter-unhandled-error-unable-to-get-an-instanc