question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conversation state unavailable error when adding Twilio/ Infobip service integration

See original GitHub issue

Describe 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

  1. Go to ‘ejected runtime code and add twilio service to AzurewebApp solution as mentioned in above link’
  2. Click on ‘run --> AzureWebApp solution–> Post a message from Whatsapp’
  3. Scroll down to ‘…’
  4. 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:closed
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
v-kydelacommented, Dec 14, 2020

@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.

0reactions
Clooney24commented, May 7, 2021

this helped me solve that issue: https://stackoverflow.com/questions/66498624/bot-framework-composer-slack-adapter-unhandled-error-unable-to-get-an-instanc

Read more comments on GitHub >

github_iconTop Results From Across the Web

Response Status and Error Codes
This can be due to service unavailability in the subscription, lack of network support, or configuration/provisioning issues. Resolving this error typically ...
Read more >
Troubleshooting Conversations API messages that are not ...
Here is a quick guide to troubleshoot your message delivery in Conversations API. Check if your user has a conversation role with SendMessage...
Read more >
High-Volume Agent - Fivetran Local Data Processing
In the Local Data Processing distributed architecture, the agent acts as a child process for the hub server that entirely controls the replication...
Read more >
tm2039074-31_424b4 - none - 111.2193719s
Our Class A common shares have been approved for listing on the Nasdaq Capital Market, under the symbol “ZENV.” We have agreed to...
Read more >
Events
CleverTap has two categories of events: System events: Events recorded automatically after you integrate our SDK. Custom events: Events you define and track ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found