gpt4 book ai didi

javascript - 无法创建 SSL/TLS 安全通道

转载 作者:搜寻专家 更新时间:2023-11-01 04:38:22 24 4
gpt4 key购买 nike

我只是有时 收到此错误 - 似乎它只是偶尔发生。如果我刷新页面,它似乎会自行修复。有什么想法吗?

The request was aborted: Could not create SSL/TLS secure channel. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.

来自这段代码:

    string ThirdURL = "https://api.facebook.com/method/users.getInfo?uids=" + FacebookUserID + "&client_id=" + AppCode.Facebook.APPLICATION_ID + "&access_token=" + AccessToken + "&fields=first_name,last_name,current_location,email,birthday,sex,pic_square,locale&format=json";
HttpWebRequest APIThirdRequest = (HttpWebRequest)WebRequest.Create(ThirdURL);
StreamReader APIThirdResponse = new StreamReader(APIThirdRequest.GetResponse().GetResponseStream());

//error on line below -->
string MoreAPIData = APIThirdResponse.ReadToEnd();

最佳答案

这是 Facebook 方面的临时问题。虽然它持续了一个解决方案是做一个“try-catch 循环”,其中请求的最大重试次数为 x,即使它可能被认为是不好的做法。

自 2012 年 7 月 17 日起,问题本身已得到解决。

关于该问题的 Facebook 开发者票证:

关于javascript - 无法创建 SSL/TLS 安全通道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11266020/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com