微信接口問題(The underlying connection was closed: An unexpected error occurred on a send)


突然在調用微信接口是報:The underlying connection was closed: An unexpected error occurred on a send錯誤,跟蹤了半天,是因為在調用阿里人臉識別接口時,接認證設置成了SSL3,而微信接口支持TLS,所以就會報錯。並且在更新后又正常的問題,

ServicePointManager.SecurityProtocol = SecurityProtocolType.SSL3;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM