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.

Unable to execute the bot on Azure functions

See original GitHub issue

Describe the bug

Upon publishing the bot to Azure function, the Azure function goes down and doesnt respond to any request

I have followed the steps for publishing bot to Azure Function with resources created through the command line script

The Function App shows up the below error image

And the status of the runtime shows as error image

And the diagnosis says image


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Version

1.1.1

Browser

Chrome

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Follow steps for Azure function as provided here https://docs.microsoft.com/en-us/composer/how-to-publish-bot

Expected behavior

The function should not error and the bot should reply over the bot channel registration test panel

Screenshots

Added above at relevant place

Additional context

The function apps were created through the commandline script as provided in the documentation

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
carlosscastrocommented, Oct 28, 2020

If you check PR #4570 , it captures the fix to make functions work again and some improvements to have it work in more environemnts. Options to get this fix are 1) wait for the next composer release or 2) eject your runtime and apply that fix to unblock right away. I’d wait until the PR is closed to adopt the fix to make sure we are happy with the final code.

2reactions
carlosscastrocommented, Oct 14, 2020

Was able to reproduce the bug. I’ll work on a fix, most likely will go out on the next release of composer in early Nov. However once the change hits main, you could use composer from nightly build or from source. If the change only affects the runtime, then you could just update your runtime without updating composer. I won’t be sure of the exact scope of the fix until I finish it. I’ll update with details on how to get access when that happens.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Azure Bot Service bots - Microsoft Learn
In the top menu bar, select Debug console. Then, in the drop-down menu, select CMD. · Run nslookup directline.botframework.com and check if the ......
Read more >
Failed deployment of Azure Function Bot - Stack Overflow
However, every time I try to create a new Function Bot (with .NET templates), deployment fails with a rather inexplicable error: "InvalidBotData ......
Read more >
Azure functions debug fails to start on a non-trivial project
When I create new Azure Functions project (.NET 5 isolated) right from the start debugging it works fine. But after some code changes...
Read more >
Azure Functions in .NET 5. Is it worth upgrading? - Medium
You were unable to use .NET 5 prior to March 2021, due to tight coupling between the Azure Functions runtime and .NET. This...
Read more >
How to create your first Teams bot and deploy it to Azure
If the deployment (partially) fails, check if a key vault with the same name has recently been deleted and needs to be purged...
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