JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

'socket' object has no attribute 'pending' #857

发布时间 2023-08-30 15:18:48作者: java渣渣

背景

使用websocket-client调用星火api出现上述错误

原因

1.4.1及以下版本是根据sslopt来判断是否使用wss,但是url可能传的并不是wss前缀导致报错。
作者在后续版本中改成根据url是不是以wss://开头判断是不是ssl

解决方案

升级到1.4.2版本及以上

参考

https://github.com/websocket-client/websocket-client/issues/857

    本栏目推荐文章
  • Center-based 3D Object Detection and Tracking
  • python socket服务端
  • socket编程 [补档-2023-07-10]
  • socket(四)Android与socket与LED灯
  • 【五期李伟平】CCF-A(AAAI'21)Game of Gradients: Mitigating Irrelevant Clients in Federated Learning
  • 2024-01-13 Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致
  • Python中出现"No module named 'requests'"的图文解决办法
  • ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password'
  • socket(三)串口与LED(stm32)
  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们