Skip to content
New issue

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

Error when downloading media #855

Closed
repomaa opened this issue Jun 18, 2018 · 3 comments
Closed

Error when downloading media #855

repomaa opened this issue Jun 18, 2018 · 3 comments
Labels
invalid No effort, ignored the the template, silly, etc

Comments

@repomaa
Copy link

repomaa commented Jun 18, 2018

I ran into this issue using telegramircd which uses telethon. I get the following trace for all requests to download media:

Unhandled exception
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 405, in start
    await resp.prepare(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_response.py", line 300, in prepare
    return await self._start(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_response.py", line 605, in _start
    return await super()._start(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_response.py", line 367, in _start
    await writer.write_headers(status_line, headers)
  File "/usr/lib/python3.6/site-packages/aiohttp/http_writer.py", line 100, in write_headers
    buf = _serialize_headers(status_line, headers)
  File "aiohttp/_http_writer.pyx", line 138, in aiohttp._http_writer._serialize_headers
  File "aiohttp/_http_writer.pyx", line 110, in aiohttp._http_writer.to_str
TypeError: Cannot serialize non-str key None

I'm using telethon version 0.18.3

@Lonami
Copy link
Member

Lonami commented Jun 18, 2018

I'm using telethon version 0.18.3

I'm not going to support old versions. Furthermore that error is completely outside of the telethon package, so maybe you did something wrong when using aiohttp?

@Lonami Lonami closed this as completed Jun 18, 2018
@Lonami Lonami added the invalid No effort, ignored the the template, silly, etc label Jun 18, 2018
@repomaa
Copy link
Author

repomaa commented Jun 18, 2018

heh that was quick. alright. i'll look into it

@Lonami
Copy link
Member

Lonami commented Jun 18, 2018

@GitHubBot helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid No effort, ignored the the template, silly, etc
Projects
None yet
Development

No branches or pull requests

2 participants