文章目录

  • 场景
  • 分析问题 && 解决

场景

对接了腾讯惠聚平台的接口, 使用curl实现请求, 设置超时时间20秒,
但是日志中突然出现了大量的Operation timed out after 20000 milliseconds with 0 bytes received
以及Operation timed out after 20000 milliseconds with 1222 bytes received

分析问题 && 解决

1. 使用商家授权以及同样的请求条件,可以在测试环境很顺利的完成1497个订单的抓取2. 联系平台,平台回复最近无更新新功能且无IP限制,我们的请求都在50ms左右完成响应,一切都很正常。另外我们这边发次with 0 bytes received这种请求时 实际上平台没有收到请求,with 1222 bytes received时 平台则在50ms内完成了响应4. 此时怀疑是生产环境出了问题,于是联系运维同事排查网络问题5. 运维排查的过程中,将部分商家的使用平台域名换成IP,发现可以很顺利的完成请求;至此断定是域名解析出了问题;生产环境使用k8s,它本身是有域名解析功能,这部分有问题。6. 将问题比较验证的几个pod替换成IP 暂时处理之后继续抓单;域名问题还是需要运维解决

curl Operation timed out after 20001 milliseconds with 0 out of 0 bytes received相关推荐

  1. 异常-java.util.concurrent.TimeoutException: Futures timed out after [100000 milliseconds]

    异常-java.util.concurrent.TimeoutException: Futures timed out after [100000 milliseconds] 参考文章: (1)异常- ...

  2. Ubuntu(Linux)上安装ROS缓慢,解决方法:添加ros的国内镜像源,以及ROS安装过程使用rosdep update出现错误:‘The read operation timed out‘

    文章目录: 1 解决Unbuntu上安装ROS特别慢问题 1.1 Ubunut 更换ROS的镜像源为国内的镜像源 1.2 如果是Mint19.3系统,请参考如下添加ros镜像源 2 ROS安装过程su ...

  3. 错误处理: socket.timeout: The read operation timed out

    安装包的时候,出现了这个报错 socket.timeout: The read operation timed out 我原来cmd输入的是 pip install timm 问题应该是安装包所需要的 ...

  4. Mysql 远程连接的问题 2003 - Can't connect to MySQL server on '39.106.187.107' (60 Operation timed out)...

    一.在上一篇文章中,使用ECS和mysql搭建mysql服务器搭建好了mysql服务器,现在需要远程连接 报错 2003 - Can't connect to MySQL server on '39. ...

  5. 成功解决socket.timeout: The read operation timed out问题

    我们有时候在pip install 某个包时会出现一大排红色的字,并提示socket.timeout: The read operation timed out的问题,可参考如下解决方法: 换镜像源下 ...

  6. github/git问题之 LibreSSL SSL_connect: Operation timed out in connection to github.com:443

    文章目录 问题描述 系统环境:mac 命令执行问题 解决方案 问题描述 系统环境:mac 命令执行问题 gaoxinfudeMacBook-Pro:Github gaoxinfu$ git clone ...

  7. gitlab runner Operation timed out

    问题描述 gitlab-runner运行job的时候一直报错: fatal: unable to access 'https://xxx.xxx.com/xxx/xxx.git/': Failed t ...

  8. Failed to connect to chromium.googlesource.com port 443: Operation timed out

    git clone googlesource 的各种 timeout:Failed to connect to chromium.googlesource.com port 443: Operatio ...

  9. Failed to connect to github.com port 443 after 75067 ms: Operation timed out

    Failed to connect to github.com port 443 after 75067 ms: Operation timed out 通过 Github 提交 code 的时候抛出 ...

最新文章

  1. Maven学习总结(八)——使用Maven构建多模块项目
  2. map中批量图层的加载和展示
  3. 高性能网站建设的14个原则
  4. Linux 小知识翻译 - 「补丁」(patch)
  5. winform窗体 小项目【安装程序】
  6. collections中的OrderedDict
  7. spring-data-jpa
  8. python奇偶求和_python 判断奇偶并求和,运行过程有错误,希望高手给指导一下。...
  9. 关于flex,好像有12个属性非常重要
  10. 大数据是如何助德国队打进欧洲杯半决赛的?
  11. WCF在安全性方面的支持(1):一些概念
  12. 开发利器--JSONVIEW插件 网页json数据直接转换
  13. 【笔记】知行合一王阳明:1472~1529
  14. oracle 漏洞补丁修复,Oracle发布41个安全补丁 修复产品严重漏洞
  15. 阿里云EMAS 移动推送发布uni-app插件
  16. 想去游戏公司做游戏,最重要的是什么素养?
  17. 人工智能基础——知识的表示方法,语义网络表示方法
  18. jfinal+poi导出excel
  19. 机器视觉和计算机视觉理解
  20. 马云对话马斯克(全文):要警惕AI?该移民火星?如何更长寿?马化腾反对产业割裂和技术脱钩...

热门文章

  1. Mac系统快捷键-持续更新
  2. 列出一些正规scjp证书各城市考点
  3. Jmeter聚合报告查看压力测试结果
  4. GIS中关于经纬度的两个计算
  5. 使用TC工具针对端口的限速
  6. 编程练习题_2.12
  7. Ubuntu 15.10下使用FAST迅捷 FW150UM Mini无线USB网卡接收wifi
  8. android手机网速,简单一步让你的手机网速至少提升2倍!
  9. 做有钱人并不难 四步让你成为有钱人
  10. 《NoSQL入门》关于NoSQL