我們的品牌

Impact-Company-Logo-English Black-01-177x54

歡迎造訪施耐德電機全球網站

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
PME2020 - Why twilio SMS notifications is not working?
Environment:
PME2020 SMS notification using Twilio.

-----------------------------------------------------------------------------------------------
Issue:
sending SMS fails. The AppMod eventlog extended information shows the below message.

LogClientException: Twilio.Exceptions.ApiConnectionException: Connection Error: POSThttps://api.twilio.com/2010-04-01/Accounts/ACef60b67fa407ccd4d729a65182200bf0/Messages.json ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at Twilio.Http.SystemNetHttpClient.MakeRequest(Request request)
at Twilio.Clients.TwilioRestClient.Request(Request request)
--- End of inner exception stack trace ---
at Twilio.Clients.TwilioRestClient.Request(Request request)
at Twilio.Rest.Api.V2010.Account.MessageResource.Create(CreateMessageOptions options, ITwilioRestClient client)
at Twilio.Rest.Api.V2010.Account.MessageResource.Create(PhoneNumber to, String pathAccountSid, PhoneNumber from, String messagingServiceSid, String body, List`1 mediaUrl, Uri statusCallback, String applicationSid, Nullable`1 maxPrice, Nullable`1 provideFeedback, Nullable`1 validityPeriod, String maxRate, Nullable`1 forceDelivery, String providerSid, ContentRetentionEnum contentRetention, AddressRetentionEnum addressRetention, Nullable`1 smartEncoded, String interactiveData, Nullable`1 forceOptIn, ITwilioRestClient client)
at Notifications.Core.Delivery.DeliverToSmsViaTwilio.SendSmsMessage(String toPhoneNumber, String message)
LogClient: Notifications.Core::Notifications.Core.Delivery.DeliverToSmsViaTwilio::SendSmsMessage

-----------------------------------------------------------------------------------------------
Cause:
This may happen if there is a restriction in connecting to the remote server.
eg. It happens when the PME server is located in a VM and the VM is connected to Schneider's internal network. There is a restriction to connect to any external website without SSO sign in. Due to this when PME tries to send SMS then it fails to connect the remote server.

-----------------------------------------------------------------------------------------------
Resolution:
  • Use a network without any such restriction.
  • Make sure the group policy is applied to the computer and the computer has applications like "Global Protect" and "Zscaler" installed and registered. In some scenarios, it may require to check the Antivirus setting as well.
  • Make sure it is possible to open any external website without requiring to do SSO login.

施耐德電機Taiwan

探索更多
系列:
探索更多
系列:

需要協助?

  • 產品選型工具

    快速輕鬆地為您的應用找到合適的產品和附件。

  • 取得報價

    立即線上提交您的銷售需求,專業團隊將主動聯繫您。

  • 購買地點

    輕鬆在您所在地區找到最近的施耐德電機經銷商。

  • 支援中心

    在同一位置找到滿足您所有需求的支援資源。

  • 產品文檔
  • 軟體下載
  • 產品選型工具
  • 產品替代和替換
  • 幫助和聯絡中心
  • 尋找我們的辦公室
  • 取得報價
  • 人才招募
  • 公司簡介
  • 舉報不當行為
  • 無障礙
  • 新聞中心
  • 投資者
  • 專業洞察
  • 台灣施耐德電機學院
  • 綠色影響力落差調查
  • Schneider Go Green 2025
  • 隱私政策
  • Cookie通告
  • 使用條款
  • Change your cookie settings