microsoft / BotFramework-Composer

Dialog creation and management for Microsoft Bot Framework Applications
https://docs.microsoft.com/en-us/composer/
MIT License
867 stars 369 forks source link

Problem in integrating CQA with Bot composer (Err: Self signed certificate in certificate chain) #9546

Closed RNJyothi closed 1 year ago

RNJyothi commented 1 year ago

I am trying to integrate the Custom Question Answering Service knowledge base with Bot Framework Composer. I am facing the below issue when trying to send a http request to CQA endpoint from Bot Framework Composer. "Error: Request to URL failed, reason: self-signed certificate in certificate chain".

Also, facing the same problem when trying to install a package from package manager of Bot Framework Composer "self-signed certificate in certificate chain"

Could you please help to understand the possible reason and a way to fix this issue?

cwhitten commented 1 year ago

Hi @RNJyothi I think you may have some firewall settings that is not allowing the Node.js runtime to make certain external network calls. You can get around this temporarily by making the following setting a shell or command prompt where you start the application (you need to start the application from the same window:

On Windows:

SET NODE_TLS_REJECT_UNAUTHORIZED=0

On Mac

export NODE_TLS_REJECT_UNAUTHORIZED=0

RNJyothi commented 1 year ago

As this is Dev Env, I have set NODE_TLS_REJECT_UNAUTHORIZED='0' and launched composer from the same window. The issue is resolved now. Thank you So much for your inputs. Could you also help me with the details on how to set up the application (Bot Framework Composer) to see the self-signed certificates, for higher environments?

InfinytRam commented 1 year ago

Closing as this main issue has been resolved.

InfinytRam commented 1 year ago

Hey @RNJyothi,

The Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow #botframework. 

The official Bot Framework Github repos are the preferred platform for submitting bug fixes and feature requests.