一、出现这个异常一般是由于异步请求过多导致响应体没有被完整接收导致的。
objectDictionary[sfObject]['job']['batch']['id'], sfObject) for sfObject in objectDictionary])
File "C:\Code\salesforce.py", line 183, in retrieveResults chunk = await r.content.read(81920)
File "C:\Program Files\Python37\lib\site-packages\aiohttp\streams.py", line 369, in read await self._wait('read')
File "C:\Program Files\Python37\lib\site-packages\aiohttp\streams.py", line 297, in _wait await waiter
aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed
二、解决
1.降低并发数量
2.降低aiohttp版本(我遇到的情况)
3.6.2会出现这种情况,3.6.1不会。且在我的另一台win电脑上也得到验证,安装3.6.1版本的aiohttp即可
pip install aiohttp==3.6.1
学习交流QQ:450297392