Closed niuhanyang closed 1 year ago
如果接口是上传文件,比如上传图片,body内容在decode的时候,不能转成字符串,就会报错了 " 'utf-8' codec can't decode byte 0x89 in position 715: invalid start byteTraceback (most recent call last): File "/Users/rc/Library/Python/3.9/lib/python/site-packages/gor/base.py", line 70, in parse_message payload = binascii.unhexlify(line.strip()).decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 715: invalid start byte
不好意思,看到master的代码,已经修复了这个问题了,pip装的不是最新的版本
如果接口是上传文件,比如上传图片,body内容在decode的时候,不能转成字符串,就会报错了 " 'utf-8' codec can't decode byte 0x89 in position 715: invalid start byteTraceback (most recent call last): File "/Users/rc/Library/Python/3.9/lib/python/site-packages/gor/base.py", line 70, in parse_message payload = binascii.unhexlify(line.strip()).decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 715: invalid start byte