背景
使用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
- 39 attribute pending socket object39 attribute pending socket 39 attribute strftime object 39 attribute nonetype object 39 quot attributeerror attribute 39 attributeerror attribute nonetype 39 attributeerror tensorflow attribute 39 attribute nonetype children 39 attributeerror antialias attribute 39 attributeerror attribute copy_src 39 attributeerror attribute深度