Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2024-02-28 12:24:29.190
- +------------------------------------
- 2024-02-28 12:24:29.190
- | TypeError: the JSON object must be str, bytes or bytearray, not dict
- 2024-02-28 12:24:29.190
- | raise TypeError(f'the JSON object must be str, bytes or bytearray, '
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/json/__init__.py", line 339, in loads
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | dashboard_config.dashboard_schema = json.loads(dashboard_config.dashboard_schema)
- 2024-02-28 12:24:29.190
- | File "/code/src/repositories/dashboard_config.py", line 27, in get
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | return dashboard_repository.get(company_uuid=company_user.company_uuid)
- 2024-02-28 12:24:29.190
- | File "/code/src/routers/dashboard.py", line 41, in get_dashboard_schema
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | result = context.run(func, *args)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | return await future
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | return await get_async_backend().run_sync_in_worker_thread(
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | return await anyio.to_thread.run_sync(func, *args)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | return await run_in_threadpool(dependant.call, **values)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 192, in run_endpoint_function
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | raw_response = await run_endpoint_function(
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | response = await func(request)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
- 2024-02-28 12:24:29.190
- | await self.app(scope, receive, send)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
- 2024-02-28 12:24:29.190
- | await route.handle(scope, receive, send)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
- 2024-02-28 12:24:29.190
- | await self.app(scope, receive, send)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
- 2024-02-28 12:24:29.190
- | raise e
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
- 2024-02-28 12:24:29.190
- | await self.app(scope, receive, sender)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
- 2024-02-28 12:24:29.190
- | raise exc
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
- 2024-02-28 12:24:29.190
- | await self.app(scope, receive_or_disconnect, send_no_error)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
- 2024-02-28 12:24:29.190
- | raise app_exc
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | return await call_next(request)
- 2024-02-28 12:24:29.190
- | File "/code/src/middlewares.py", line 53, in dispatch
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | response = await self.dispatch_func(request, call_next)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
- 2024-02-28 12:24:29.190
- | Traceback (most recent call last):
- 2024-02-28 12:24:29.190
- |
- 2024-02-28 12:24:29.190
- | During handling of the above exception, another exception occurred:
- 2024-02-28 12:24:29.190
- |
- 2024-02-28 12:24:29.190
- | anyio.EndOfStream
- 2024-02-28 12:24:29.190
- | raise EndOfStream
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 112, in receive
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | message = await recv_stream.receive()
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 78, in call_next
- 2024-02-28 12:24:29.190
- | Traceback (most recent call last):
- 2024-02-28 12:24:29.190
- |
- 2024-02-28 12:24:29.190
- | During handling of the above exception, another exception occurred:
- 2024-02-28 12:24:29.190
- |
- 2024-02-28 12:24:29.190
- | anyio.WouldBlock
- 2024-02-28 12:24:29.190
- | raise WouldBlock
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 92, in receive_nowait
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | return self.receive_nowait()
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 97, in receive
- 2024-02-28 12:24:29.190
- | Traceback (most recent call last):
- 2024-02-28 12:24:29.190
- +-+---------------- 1 ----------------
- 2024-02-28 12:24:29.190
- | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
- 2024-02-28 12:24:29.190
- | raise BaseExceptionGroup(
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 678, in __aexit__
- 2024-02-28 12:24:29.190
- | async with anyio.create_task_group() as task_group:
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 106, in __call__
- 2024-02-28 12:24:29.190
- | await self.app(scope, receive, send)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response
- 2024-02-28 12:24:29.190
- | await self.simple_response(scope, receive, send, request_headers=headers)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in __call__
- 2024-02-28 12:24:29.190
- | await self.app(scope, receive, _send)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
- 2024-02-28 12:24:29.190
- | raise exc
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
- 2024-02-28 12:24:29.190
- | await self.middleware_stack(scope, receive, send)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
- 2024-02-28 12:24:29.190
- | await super().__call__(scope, receive, send)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 289, in __call__
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | return await self.app(scope, receive, send)
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
- 2024-02-28 12:24:29.190
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- | result = await app( # type: ignore[func-returns-value]
- 2024-02-28 12:24:29.190
- | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
- 2024-02-28 12:24:29.190
- + Exception Group Traceback (most recent call last):
- 2024-02-28 12:24:29.190
- 2024-02-28 12:24:29.190
- During handling of the above exception, another exception occurred:
- 2024-02-28 12:24:29.190
- 2024-02-28 12:24:29.190
- TypeError: the JSON object must be str, bytes or bytearray, not dict
- 2024-02-28 12:24:29.190
- raise TypeError(f'the JSON object must be str, bytes or bytearray, '
- 2024-02-28 12:24:29.190
- File "/usr/local/lib/python3.11/json/__init__.py", line 339, in loads
- 2024-02-28 12:24:29.190
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- dashboard_config.dashboard_schema = json.loads(dashboard_config.dashboard_schema)
- 2024-02-28 12:24:29.190
- File "/code/src/repositories/dashboard_config.py", line 27, in get
- 2024-02-28 12:24:29.190
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- return dashboard_repository.get(company_uuid=company_user.company_uuid)
- 2024-02-28 12:24:29.190
- File "/code/src/routers/dashboard.py", line 41, in get_dashboard_schema
- 2024-02-28 12:24:29.190
- ^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- result = context.run(func, *args)
- 2024-02-28 12:24:29.190
- File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run
- 2024-02-28 12:24:29.190
- ^^^^^^^^^^^^
- 2024-02-28 12:24:29.190
- return await future
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
- 2024-02-28 12:24:29.189
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.189
- return await get_async_backend().run_sync_in_worker_thread(
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
- 2024-02-28 12:24:29.189
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.189
- return await anyio.to_thread.run_sync(func, *args)
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
- 2024-02-28 12:24:29.189
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.189
- return await run_in_threadpool(dependant.call, **values)
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 192, in run_endpoint_function
- 2024-02-28 12:24:29.189
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.189
- raw_response = await run_endpoint_function(
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
- 2024-02-28 12:24:29.189
- ^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.189
- response = await func(request)
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
- 2024-02-28 12:24:29.189
- await self.app(scope, receive, send)
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
- 2024-02-28 12:24:29.189
- await route.handle(scope, receive, send)
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
- 2024-02-28 12:24:29.189
- await self.app(scope, receive, send)
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
- 2024-02-28 12:24:29.189
- raise e
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
- 2024-02-28 12:24:29.189
- await self.app(scope, receive, sender)
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
- 2024-02-28 12:24:29.189
- raise exc
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
- 2024-02-28 12:24:29.189
- await self.app(scope, receive_or_disconnect, send_no_error)
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
- 2024-02-28 12:24:29.189
- raise app_exc
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
- 2024-02-28 12:24:29.189
- ^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.189
- return await call_next(request)
- 2024-02-28 12:24:29.189
- File "/code/src/middlewares.py", line 53, in dispatch
- 2024-02-28 12:24:29.189
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 2024-02-28 12:24:29.189
- response = await self.dispatch_func(request, call_next)
- 2024-02-28 12:24:29.189
- File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
- 2024-02-28 12:24:29.189
- Traceback (most recent call last):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement