Skip to content

Instantly share code, notes, and snippets.

@Shmookoff
Created July 13, 2022 22:23
Show Gist options
  • Save Shmookoff/1763f249789e871b3484ee9ecc01d917 to your computer and use it in GitHub Desktop.
Save Shmookoff/1763f249789e871b3484ee9ecc01d917 to your computer and use it in GitHub Desktop.
TemporaryFile -> pipe_from traceback
Traceback (most recent call last):
File "/home/shmoo/projects/typed-google/tygle-drive/main.py", line 71, in <module>
asyncio.run(main1())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 641, in run_until_complete
return future.result()
File "/home/shmoo/projects/typed-google/tygle-drive/main.py", line 68, in main1
await aiogoogle.as_service_account(req)
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiogoogle/client.py", line 294, in as_service_account
return await self.send(
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiogoogle/client.py", line 395, in send
return await session.send(*args, **kwargs)
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiogoogle/sessions/aiohttp_session.py", line 183, in send
results = await schedule_tasks()
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiogoogle/sessions/aiohttp_session.py", line 175, in schedule_tasks
return await asyncio.gather(*tasks, return_exceptions=False)
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiogoogle/sessions/aiohttp_session.py", line 161, in get_content
response = await get_response(request)
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiogoogle/sessions/aiohttp_session.py", line 154, in get_response
response = await fire_request(request)
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiogoogle/sessions/aiohttp_session.py", line 118, in fire_request
return await self.request(
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiohttp/client.py", line 559, in _request
await resp.start(conn)
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 898, in start
message, payload = await protocol.read() # type: ignore[union-attr]
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 583, in write_bytes
await self.body.write(writer)
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiohttp/multipart.py", line 903, in write
await part.write(writer)
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiohttp/payload.py", line 444, in write
await writer.write(chunk)
File "/home/shmoo/.cache/pypoetry/virtualenvs/tygle-drive-54fsNpt--py3.10/lib/python3.10/site-packages/aiohttp/http_writer.py", line 113, in write
chunk_len_pre = ("%x\r\n" % len(chunk)).encode("ascii")
TypeError: object of type 'generator' has no len()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment