Tag: botframework

WebSocket客户端错误.net核心与Linux Docker图像与botframework直线

系统信息 SDK语言 :.NET Core 1.1.2 开发环境 :Docker – Linux容器 问题描述 嗨,我用websocket连接到botframework directline频道。 我的客户端使用.net核心构build,并在Linux容器中运行。 我有以下问题:System.Net.WebSockets.WebSocketException:无法连接到远程服务器—> System.Security.Authentication.AuthenticationException:远程证书根据validation过程是无效的。 当它在Windows上运行时,相同的代码效果很好。 谢谢你的帮助 ! 代码示例 System.Net.WebSockets.ClientWebSocket客户端=新的System.Net.WebSockets.ClientWebSocket(); 等待client.ConnectAsync(新的Uri(“wss://directline.botframework.com/v3/directline/conversations/XXXX”)); 实际结果 System.Net.WebSockets.WebSocketException:无法连接到远程服务器—> System.Security.Authentication.AuthenticationException:根据validation过程,远程证书无效。 System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message,AsyncProtocolRequest asyncRequest)在System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken消息,AsyncProtocolRequest asyncRequest,ExceptionDispatchInfoexception)System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Net.Security.SslState.ProcessReceivedBlob(Byte []缓冲区,Int32计数,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartSendBlob(Byte []传入,Int32计数,AsyncProtocolRequest asyncRequest)。 SslState.ReadFrameCallback(AsyncProtocolRequest asyncRequest)

docker桥接localhost端口

在本地计算机上有一个在Port 50160上运行的chatbot服务。 此端口用于接收来自泊坞窗容器中的nodejs-service的消息。 要将消息发送到聊天服务,docker-container将打开端口8080 。 这工作正常。 我开始使用docker run -p 8080:8080 registry.gitlab.com/abc/def/adapter-xyz 。 但是,从docker-container向chatbot发送响应将在docker容器中返回以下错误: ChatConnector: message received. Error: connect ECONNREFUSED 127.0.0.1:50160 at Object.exports._errnoException (util.js:1020:11) at exports._exceptionWithHostPort (util.js:1043:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14) 似乎它不能发送回应chatbot(在我的机器上运行)。 任何想法?