
bug处理
盼兮
这个作者很懒,什么都没留下…
展开
-
【bug】[Errno 14] curl#6 - “Could not resolve host: mirrors.163.com; Unknown error“
错误重现:[root@aimaster ~]# yum -y install samba执行命令报错, 结果如下:总下载量:7.7 MDownloading packages:Delta RPMs disabled because /usr/bin/applydeltarpm not installed.dbus-1.10.24-15.el7.x86_64.rpm FAILED http://mirrors.1原创 2021-01-26 10:43:06 · 2802 阅读 · 0 评论 -
【bug】kafka:WARN Connection to node -1 could not be established. Broker may not be available.
bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group group1报错Note: This will not show information about old Zookeeper-based consumers.[2021-01-22 19:04:37,515] WARN Connection to node -1 could not be established. Broker ma原创 2021-01-22 19:01:14 · 669 阅读 · 0 评论 -
[bug]Data truncation:Data too long for column ‘x‘ at row 1
【错误信息】 Data truncation:Data too long for column ‘x’ at row 1【原因】 插入数据库报超长。超过了 Text 文本的最大允许长度Text 最大长度65535个字节(2^16-1)MediumText 最大长度 16777215 个字节(2^24-1【解决方案】 修改字段类型···alter table table modify column info mediumtext···更多详情:https://blog.youkuaiyun.com/yo原创 2021-01-22 18:56:48 · 375 阅读 · 0 评论 -
python 报错“UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte“的解决办法
用python 读取一个 txt 文件with open(file, encoding='utf-8') as f: conlines = f.readlines()运行报错: UnicodeDecodeError: ‘utf-8’ codec can’t decode byte解决方案:检查文件的编码格式是否是 utf-8 . 统一编码格式...原创 2021-01-20 15:34:17 · 6060 阅读 · 0 评论 -
【bug】python requests报Max retries exceeded with url异常
错误信息:python requests报Max retries exceeded with url异常原因分析:1http请求连接太多没有关闭造成的.解决方案一:关闭多余的链接:requests使用了urllib3库,默认的http connection是keep-alive的,requests设置False关闭。sess = requests.session()sess.keep_alive = False解决方案二:增加重试连接次数: requests.DEFAULT_RETR原创 2021-01-18 11:56:38 · 441 阅读 · 0 评论