Advertisement
Mochinov

Untitled

Feb 28th, 2024
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.06 KB | None | 0 0
  1.  
  2. 2024-02-28 12:24:29.190
  3. +------------------------------------
  4. 2024-02-28 12:24:29.190
  5. | TypeError: the JSON object must be str, bytes or bytearray, not dict
  6. 2024-02-28 12:24:29.190
  7. | raise TypeError(f'the JSON object must be str, bytes or bytearray, '
  8. 2024-02-28 12:24:29.190
  9. | File "/usr/local/lib/python3.11/json/__init__.py", line 339, in loads
  10. 2024-02-28 12:24:29.190
  11. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  12. 2024-02-28 12:24:29.190
  13. | dashboard_config.dashboard_schema = json.loads(dashboard_config.dashboard_schema)
  14. 2024-02-28 12:24:29.190
  15. | File "/code/src/repositories/dashboard_config.py", line 27, in get
  16. 2024-02-28 12:24:29.190
  17. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  18. 2024-02-28 12:24:29.190
  19. | return dashboard_repository.get(company_uuid=company_user.company_uuid)
  20. 2024-02-28 12:24:29.190
  21. | File "/code/src/routers/dashboard.py", line 41, in get_dashboard_schema
  22. 2024-02-28 12:24:29.190
  23. | ^^^^^^^^^^^^^^^^^^^^^^^^
  24. 2024-02-28 12:24:29.190
  25. | result = context.run(func, *args)
  26. 2024-02-28 12:24:29.190
  27. | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run
  28. 2024-02-28 12:24:29.190
  29. | ^^^^^^^^^^^^
  30. 2024-02-28 12:24:29.190
  31. | return await future
  32. 2024-02-28 12:24:29.190
  33. | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
  34. 2024-02-28 12:24:29.190
  35. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  36. 2024-02-28 12:24:29.190
  37. | return await get_async_backend().run_sync_in_worker_thread(
  38. 2024-02-28 12:24:29.190
  39. | File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
  40. 2024-02-28 12:24:29.190
  41. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  42. 2024-02-28 12:24:29.190
  43. | return await anyio.to_thread.run_sync(func, *args)
  44. 2024-02-28 12:24:29.190
  45. | File "/usr/local/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
  46. 2024-02-28 12:24:29.190
  47. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  48. 2024-02-28 12:24:29.190
  49. | return await run_in_threadpool(dependant.call, **values)
  50. 2024-02-28 12:24:29.190
  51. | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 192, in run_endpoint_function
  52. 2024-02-28 12:24:29.190
  53. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  54. 2024-02-28 12:24:29.190
  55. | raw_response = await run_endpoint_function(
  56. 2024-02-28 12:24:29.190
  57. | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
  58. 2024-02-28 12:24:29.190
  59. | ^^^^^^^^^^^^^^^^^^^
  60. 2024-02-28 12:24:29.190
  61. | response = await func(request)
  62. 2024-02-28 12:24:29.190
  63. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
  64. 2024-02-28 12:24:29.190
  65. | await self.app(scope, receive, send)
  66. 2024-02-28 12:24:29.190
  67. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
  68. 2024-02-28 12:24:29.190
  69. | await route.handle(scope, receive, send)
  70. 2024-02-28 12:24:29.190
  71. | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
  72. 2024-02-28 12:24:29.190
  73. | await self.app(scope, receive, send)
  74. 2024-02-28 12:24:29.190
  75. | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
  76. 2024-02-28 12:24:29.190
  77. | raise e
  78. 2024-02-28 12:24:29.190
  79. | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
  80. 2024-02-28 12:24:29.190
  81. | await self.app(scope, receive, sender)
  82. 2024-02-28 12:24:29.190
  83. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
  84. 2024-02-28 12:24:29.190
  85. | raise exc
  86. 2024-02-28 12:24:29.190
  87. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
  88. 2024-02-28 12:24:29.190
  89. | await self.app(scope, receive_or_disconnect, send_no_error)
  90. 2024-02-28 12:24:29.190
  91. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
  92. 2024-02-28 12:24:29.190
  93. | raise app_exc
  94. 2024-02-28 12:24:29.190
  95. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
  96. 2024-02-28 12:24:29.190
  97. | ^^^^^^^^^^^^^^^^^^^^^^^^
  98. 2024-02-28 12:24:29.190
  99. | return await call_next(request)
  100. 2024-02-28 12:24:29.190
  101. | File "/code/src/middlewares.py", line 53, in dispatch
  102. 2024-02-28 12:24:29.190
  103. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  104. 2024-02-28 12:24:29.190
  105. | response = await self.dispatch_func(request, call_next)
  106. 2024-02-28 12:24:29.190
  107. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
  108. 2024-02-28 12:24:29.190
  109. | Traceback (most recent call last):
  110. 2024-02-28 12:24:29.190
  111. |
  112. 2024-02-28 12:24:29.190
  113. | During handling of the above exception, another exception occurred:
  114. 2024-02-28 12:24:29.190
  115. |
  116. 2024-02-28 12:24:29.190
  117. | anyio.EndOfStream
  118. 2024-02-28 12:24:29.190
  119. | raise EndOfStream
  120. 2024-02-28 12:24:29.190
  121. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 112, in receive
  122. 2024-02-28 12:24:29.190
  123. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  124. 2024-02-28 12:24:29.190
  125. | message = await recv_stream.receive()
  126. 2024-02-28 12:24:29.190
  127. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 78, in call_next
  128. 2024-02-28 12:24:29.190
  129. | Traceback (most recent call last):
  130. 2024-02-28 12:24:29.190
  131. |
  132. 2024-02-28 12:24:29.190
  133. | During handling of the above exception, another exception occurred:
  134. 2024-02-28 12:24:29.190
  135. |
  136. 2024-02-28 12:24:29.190
  137. | anyio.WouldBlock
  138. 2024-02-28 12:24:29.190
  139. | raise WouldBlock
  140. 2024-02-28 12:24:29.190
  141. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 92, in receive_nowait
  142. 2024-02-28 12:24:29.190
  143. | ^^^^^^^^^^^^^^^^^^^^^
  144. 2024-02-28 12:24:29.190
  145. | return self.receive_nowait()
  146. 2024-02-28 12:24:29.190
  147. | File "/usr/local/lib/python3.11/site-packages/anyio/streams/memory.py", line 97, in receive
  148. 2024-02-28 12:24:29.190
  149. | Traceback (most recent call last):
  150. 2024-02-28 12:24:29.190
  151. +-+---------------- 1 ----------------
  152. 2024-02-28 12:24:29.190
  153. | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  154. 2024-02-28 12:24:29.190
  155. | raise BaseExceptionGroup(
  156. 2024-02-28 12:24:29.190
  157. | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 678, in __aexit__
  158. 2024-02-28 12:24:29.190
  159. | async with anyio.create_task_group() as task_group:
  160. 2024-02-28 12:24:29.190
  161. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 106, in __call__
  162. 2024-02-28 12:24:29.190
  163. | await self.app(scope, receive, send)
  164. 2024-02-28 12:24:29.190
  165. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response
  166. 2024-02-28 12:24:29.190
  167. | await self.simple_response(scope, receive, send, request_headers=headers)
  168. 2024-02-28 12:24:29.190
  169. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in __call__
  170. 2024-02-28 12:24:29.190
  171. | await self.app(scope, receive, _send)
  172. 2024-02-28 12:24:29.190
  173. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
  174. 2024-02-28 12:24:29.190
  175. | raise exc
  176. 2024-02-28 12:24:29.190
  177. | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
  178. 2024-02-28 12:24:29.190
  179. | await self.middleware_stack(scope, receive, send)
  180. 2024-02-28 12:24:29.190
  181. | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
  182. 2024-02-28 12:24:29.190
  183. | await super().__call__(scope, receive, send)
  184. 2024-02-28 12:24:29.190
  185. | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 289, in __call__
  186. 2024-02-28 12:24:29.190
  187. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  188. 2024-02-28 12:24:29.190
  189. | return await self.app(scope, receive, send)
  190. 2024-02-28 12:24:29.190
  191. | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
  192. 2024-02-28 12:24:29.190
  193. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  194. 2024-02-28 12:24:29.190
  195. | result = await app( # type: ignore[func-returns-value]
  196. 2024-02-28 12:24:29.190
  197. | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 428, in run_asgi
  198. 2024-02-28 12:24:29.190
  199. + Exception Group Traceback (most recent call last):
  200. 2024-02-28 12:24:29.190
  201.  
  202. 2024-02-28 12:24:29.190
  203. During handling of the above exception, another exception occurred:
  204. 2024-02-28 12:24:29.190
  205.  
  206. 2024-02-28 12:24:29.190
  207. TypeError: the JSON object must be str, bytes or bytearray, not dict
  208. 2024-02-28 12:24:29.190
  209. raise TypeError(f'the JSON object must be str, bytes or bytearray, '
  210. 2024-02-28 12:24:29.190
  211. File "/usr/local/lib/python3.11/json/__init__.py", line 339, in loads
  212. 2024-02-28 12:24:29.190
  213. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  214. 2024-02-28 12:24:29.190
  215. dashboard_config.dashboard_schema = json.loads(dashboard_config.dashboard_schema)
  216. 2024-02-28 12:24:29.190
  217. File "/code/src/repositories/dashboard_config.py", line 27, in get
  218. 2024-02-28 12:24:29.190
  219. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  220. 2024-02-28 12:24:29.190
  221. return dashboard_repository.get(company_uuid=company_user.company_uuid)
  222. 2024-02-28 12:24:29.190
  223. File "/code/src/routers/dashboard.py", line 41, in get_dashboard_schema
  224. 2024-02-28 12:24:29.190
  225. ^^^^^^^^^^^^^^^^^^^^^^^^
  226. 2024-02-28 12:24:29.190
  227. result = context.run(func, *args)
  228. 2024-02-28 12:24:29.190
  229. File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run
  230. 2024-02-28 12:24:29.190
  231. ^^^^^^^^^^^^
  232. 2024-02-28 12:24:29.190
  233. return await future
  234. 2024-02-28 12:24:29.189
  235. File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
  236. 2024-02-28 12:24:29.189
  237. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  238. 2024-02-28 12:24:29.189
  239. return await get_async_backend().run_sync_in_worker_thread(
  240. 2024-02-28 12:24:29.189
  241. File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
  242. 2024-02-28 12:24:29.189
  243. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  244. 2024-02-28 12:24:29.189
  245. return await anyio.to_thread.run_sync(func, *args)
  246. 2024-02-28 12:24:29.189
  247. File "/usr/local/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
  248. 2024-02-28 12:24:29.189
  249. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  250. 2024-02-28 12:24:29.189
  251. return await run_in_threadpool(dependant.call, **values)
  252. 2024-02-28 12:24:29.189
  253. File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 192, in run_endpoint_function
  254. 2024-02-28 12:24:29.189
  255. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  256. 2024-02-28 12:24:29.189
  257. raw_response = await run_endpoint_function(
  258. 2024-02-28 12:24:29.189
  259. File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
  260. 2024-02-28 12:24:29.189
  261. ^^^^^^^^^^^^^^^^^^^
  262. 2024-02-28 12:24:29.189
  263. response = await func(request)
  264. 2024-02-28 12:24:29.189
  265. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
  266. 2024-02-28 12:24:29.189
  267. await self.app(scope, receive, send)
  268. 2024-02-28 12:24:29.189
  269. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
  270. 2024-02-28 12:24:29.189
  271. await route.handle(scope, receive, send)
  272. 2024-02-28 12:24:29.189
  273. File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
  274. 2024-02-28 12:24:29.189
  275. await self.app(scope, receive, send)
  276. 2024-02-28 12:24:29.189
  277. File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
  278. 2024-02-28 12:24:29.189
  279. raise e
  280. 2024-02-28 12:24:29.189
  281. File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
  282. 2024-02-28 12:24:29.189
  283. await self.app(scope, receive, sender)
  284. 2024-02-28 12:24:29.189
  285. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
  286. 2024-02-28 12:24:29.189
  287. raise exc
  288. 2024-02-28 12:24:29.189
  289. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
  290. 2024-02-28 12:24:29.189
  291. await self.app(scope, receive_or_disconnect, send_no_error)
  292. 2024-02-28 12:24:29.189
  293. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
  294. 2024-02-28 12:24:29.189
  295. raise app_exc
  296. 2024-02-28 12:24:29.189
  297. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 84, in call_next
  298. 2024-02-28 12:24:29.189
  299. ^^^^^^^^^^^^^^^^^^^^^^^^
  300. 2024-02-28 12:24:29.189
  301. return await call_next(request)
  302. 2024-02-28 12:24:29.189
  303. File "/code/src/middlewares.py", line 53, in dispatch
  304. 2024-02-28 12:24:29.189
  305. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  306. 2024-02-28 12:24:29.189
  307. response = await self.dispatch_func(request, call_next)
  308. 2024-02-28 12:24:29.189
  309. File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 108, in __call__
  310. 2024-02-28 12:24:29.189
  311. Traceback (most recent call last):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement