We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
object_callback.py里的这玩意真**莫名其妙
object_callback.py
assert result.resp.read() == b'{"Status":"OK"}'
我回调服务器是用flask响应的标准json数据
{ "Status": "OK" }
从response里拿出来长这样:
b'{\n "Status": "OK"\n}\n'
结果因为包含'\n'换行符卡在这处assert,你说你官方demo,整这玩意干啥?谁家http接口会响应一个没缩进没换行的source string??????
assert
The text was updated successfully, but these errors were encountered:
接口响应格式化后的json字符串才是少见吧🤣
Sorry, something went wrong.
今天特地来吐槽 oss2 这个屎一样的代码。发现了问题也没有人回复或处理。
oss2
难道不是比较 b'{"Status":"OK"}' 这个东西很抽象吗?序列化几个字很麻烦吗,Python 很在乎这一点 CPU 吗?
b'{"Status":"OK"}'
如果担心影响性能直接判断这个字节串的长度就好了,>100 肯定不对,100 以内 JSON 解析应该是个基本能力吧。
不喷人,只是特地过来吐槽阿里这个代码,希望官方能少堆屎。
No branches or pull requests
object_callback.py
里的这玩意真**莫名其妙我回调服务器是用flask响应的标准json数据
从response里拿出来长这样:
结果因为包含'\n'换行符卡在这处
assert
,你说你官方demo,整这玩意干啥?谁家http接口会响应一个没缩进没换行的source string??????The text was updated successfully, but these errors were encountered: