async def index(request):
async with aiohttp.ClientSession() as client:
data=await(email_verification(client))
await client.post('http://127.0.0.1:8000/acc/signup',data=data)
async def email_verification(client):
async with client.get('http://www.mocky.io/v2/5c18dfb62f00005b00af1241') as resp:
return await(resp.json())
但是每当我尝试访问该网址时,我都会收到此错误
await resp.prepare(request)
AttributeError: 'NoneType' object has no attribute 'prepare'
我什至无法理解问题是什么以及这个 resp.prepare 来自哪里