Closed EPinci closed 4 years ago
Further troubleshooting makes me think this is not Composer related. Closing this in favor of https://github.com/microsoft/botbuilder-dotnet/issues/4599
The issue still persists. Creating a bot on Composer and then deploying it Telegram channel results in the following error: Object reference not set to an instance of an object
Any solutions or fixes for this yet?
Hey, this is not a composer issue, it's a bot framework issue (see the link above). It has already been fixed though I think this has not made it yet to a release.
If you need now a band-aid with composer you can:
// Temporary fix for telegram channel
turnContext.Activity.Locale = turnContext.Activity.Locale ?? "";
HTH.
@EPinci Thanks a lot for the quick reply. This definitely works now as expected.
I changed the file at '/runtime/core/ComposerBot.cs' as you mentioned. This really saved my time. Thanks again :)
Describe the issue
Not sure if this is a Composer bug or not, but I'm short of ideas and I'll appreciate if you have any guidance in here.
My bot works fine locally, I can test it fine with the bot emulator. When I hook it up with the azure bot channel service I can validate it works fine with the web channel and skype channel as well. Telegram, however, errors out and I get the following (a bit cryptic) stack trace:
Since I've been recently been working to move from an "en-us" bot to my local language, thanks to the last composer release, I'm leaning to think that the issue lies in there (?).
I have a composer generated bot that is set to have only the "it-it" locale and I set a default policy to fallback on it. I also use LUIS and the default language is set the same.
Might https://github.com/microsoft/botbuilder-dotnet/issues/4143 be related?
Version
v1.1.1
Browser
OS