dongyiluan1718 2013-02-06 19:00
浏览 133

在Facebook Graph API中间歇性地卷曲SSL和连接超时

i think my problem is totally different than rest questions on Stackoverflow. I searched and googled everywhere but dint find accurate solution or reason for it. Hope i get some information over here.

My facebook application using Facebook PHP SDK and my apps working fine most of the time. They do give sometime few errors in general. But now suddenly my facebook apps fails to fetch user data after authentication and take too much time to load, which was working totally fine previosly. This sudden change happen with every app, in between it do authenticate some users but in minor case. To see in error log, it throws error like:
CurlException: 28: SSL connection timeout
CurlException: 28: Operation timed out after 60000 milliseconds with 0 bytes received
Uncaught CurlException: 28: SSL connection timeout
CurlException: 28: connect() timed out!
CurlException: 7: couldn't connect to host

But strange thing is, that this occur at any time but this sudden change automatically stop and all app start working fine and normal like previous after 5 - 8hrs. Now i am confused what may be making such problem? Is it Rate Limit from Facebook? I did nslookup, ping, curl -v, to api.facebook.com and it gives output too. Even my port and firewall rules are OK. Please Help Me friends

  • 写回答

1条回答 默认 最新

  • dtl4521 2013-02-07 17:24
    关注

    Sometimes network connections will fail. Sometimes remote services will fail. You can't think of a remote service call over HTTP over the internet into a 3rd party's systems as fail proof. You must write your software to expect this & handle it gracefully. Set reasonable timeouts, look for failures & be prepared to retry a few times before giving up.

    评论

报告相同问题?

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?