Skip to content

TypeError: Cannot serialize non-str key None #22

@dogo77

Description

@dogo77

Tried to run docker and local install, both throwing following error:
INFO: xxx.xxx.xxx.xxx:54870 - "GET / HTTP/1.1" 500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 375, in run_asgi result = await app(self.scope, self.receive, self.send) File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__ return await self.app(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 208, in __call__ await super().__call__(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 112, in __call__ await self.middleware_stack(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 181, in __call__ raise exc from None File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 159, in __call__ await self.app(scope, receive, _send) File "/usr/local/lib/python3.10/site-packages/starlette/exceptions.py", line 82, in __call__ raise exc from None File "/usr/local/lib/python3.10/site-packages/starlette/exceptions.py", line 71, in __call__ await self.app(scope, receive, sender) File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 580, in __call__ await route.handle(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 241, in handle await self.app(scope, receive, send) File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 52, in app response = await func(request) File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 219, in app raw_response = await run_endpoint_function( File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 152, in run_endpoint_function return await dependant.call(**values) File "/app/plex/plexserver.py", line 118, in link_page pin, pin_id = await pin_login.get_pin(d) File "/app/plex/pin_login.py", line 9, in get_pin async with g.http.post(PINS, headers=pms_header(device)) as p: File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1117, in __aenter__ self._resp = await self._coro File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 542, in _request resp = await req.send(conn) File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 668, in send await writer.write_headers(status_line, self.headers) File "/usr/local/lib/python3.10/site-packages/aiohttp/http_writer.py", line 118, in write_headers buf = _serialize_headers(status_line, headers) File "aiohttp/_http_writer.pyx", line 137, in aiohttp._http_writer._serialize_headers File "aiohttp/_http_writer.pyx", line 109, in aiohttp._http_writer.to_str TypeError: Cannot serialize non-str key None
Don't know how to fix :\

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions