随笔分类 -  BUG

Crypto.AES 报错 | TypeError: Object type <class 'str'> cannot be passed to C code
摘要:一、加密代码 import base64 import zlib from Crypto.Cipher import AES from Crypto import Random BLOCK_SIZE = 16 def pad(s): return s + ((BLOCK_SIZE - len(s) 阅读全文
posted @ 2020-09-25 19:04 lin-gooo 阅读(4719) 评论(0) 推荐(0)
MySQL Error:Warning: (1366, "Incorrect string value: '\\xF0\\x9F\\x98\\x82\\xF0\\x9F...' for column 'xxx' at row 2")
摘要:bug现象 使用连接数据库的可视化软件插入 emoj 表情数据、生僻字,可以正常插入。(导致我一直以为跟表情没有任何关系,谷歌出来一堆跟修改数据库、表、字段 的编码的结果....)但是一启动程序插入新数据就会报这个错误,一一检查过数据库、表、字段的编码都是正确的,后面只能把插入数据的代码撸下来单独跑 阅读全文
posted @ 2019-12-06 16:10 lin-gooo 阅读(3154) 评论(0) 推荐(0)
MySQL server has gone away && Lost connection to MySQL server during query
摘要:问题一、MySQL server has gone away ##### peewee from peewee import * from peewee import __exception_wrapper__ class RetryOperationalError(object): def exe 阅读全文
posted @ 2019-09-03 10:28 lin-gooo 阅读(1141) 评论(0) 推荐(0)
RSA key format is not supported
摘要:对接支付宝时,提示RSA错误 : 请仔细检查 : 创建支付对象时,关键字参数的名字 如果公私钥是以拼接路径的方式传递给AliPay,正确的关键字参数的名字应该如下 : 阅读全文
posted @ 2019-03-13 21:20 lin-gooo 阅读(4571) 评论(1) 推荐(0)
small bug
摘要:Django : a. MySQL数据表还未创建时,不可在视图内直接使用模型类对象,产生报错 django.db.utils.ProgrammingError: (1146, "Table 'django_demo.tb_goods' doesn't exist") b. 编写类视图时,继承的父类错 阅读全文
posted @ 2019-03-07 09:54 lin-gooo 阅读(281) 评论(0) 推荐(0)