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.

Failed to publish bot with LUIS from behind a firewall

See original GitHub issue

Describe the bug

I use the Bot Framework Composer on the Windows PC with a corporate firewall. I already set up proxy configuration as environmental variables below:

HTTPS_PROXY=http://11.22.33.44:3128
HTTP_PROXY=http://11.22.33.44:3128
NO_PROXY=localhost

So most communication has no problem, but publishing the bot with LUIS is always failed with getaddrinfo EAI_AGAIN error. The error message is below:

Sorry, something went wrong with publishing. Try again or exit out of this task. request to https://westus.api.cognitive.microsoft.com/luis/authoring/v3.0-preview/apps/import?appName=ToDoBotWithLuisSample-0(composer)-additem.en-us.lu failed, reason: getaddrinfo EAI_AGAIN westus.api.cognitive.microsoft.com

I think the cause is not to go through the proxy when communicating with the LUIS API. I think getaddrinfo should not be called on the environment behind a proxy.

Version

Bot Framework Composer

Version:  1.0.2
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Set up proxy configuration as environmental variables on the PC with a corporate firewall
  2. Run the Bot Framework Composer on the PC
  3. Create bot from “Todo with LUIS” template
  4. Click [Start Bot]
  5. Set valid LUIS Authoring key (or any dummy string) on the [Publish LUIS models] dialog, then click [OK]
  6. See error

Expected behavior

The publish will succeed. (or failed due to the dummy Authoring key)

Screenshots

200908_bfc_luis_publish_error_full

Additional context

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
luhan2017commented, Nov 2, 2020

@cwhitten This is a nodejs proxy issue, I was investigating a similar proxy issue with credit-suisse recently, we sent a private electron to them to verify if the solution works, once verified, we will submit a PR in composer to support the nodejs proxy feature.

@soappp , please let me know if you want to try out our private electron, I can send you the exe and the steps to enable proxy for composer. Thanks.

1reaction
sudhanrvcommented, May 1, 2021

@feich-ms Let’s sync offline on this, after some investigation, we found that we’d better support the proxy settings from the bf cli side. Then composer can leverage the capability.

@luhan2017 Could you please help me as well support the proxy settings from the bf cli side. I am facing the exact same failure while publishing LUIS from composer and I am behind corporate network firewall #7543.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bot publish fail - Microsoft Q&A
Hello I made bot and trying to publish, but I receive error. I don't use LUIS. Bot contains just dialogs. Provision failure
Read more >
What are Azure Bot Framework and LUIS IP Addresses [for ...
I would like to open firewall rules for Microsoft LUIS and BotFramework. They both use TCP port 443, however I need the IP...
Read more >
Known issues - Microsoft Open Source
If a resource has a firewall configured, the resource might not be reached by the bot. You can check your network configuration in...
Read more >
Azure Bot Service Tutorial | Create Chatbots in minutes
Azure Bot Service and Bot Framework provide tools to build, test, deploy, and manage intelligent bots all ... Adding AI to chatbot with...
Read more >
Blog - Microsoft Bot Framework
In the earlier stages of LUIS, binding Intents to Actions was something that was automatically handled by the LUIS service behind the scenes....
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