Advertisement
possebon

Untitled

Oct 2nd, 2023
1,206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 27.07 KB | None | 0 0
  1. 2023-10-02 16:50:59.346 | DEBUG    | app.api.api_v1.endpoints.spot:fetch_spot_id:118 - entity=SPOT | method=GET | route=/spots/{search_id} | returncode=000 | message=Route_Called
  2. 2023-10-02 16:50:59.350 | SUCCESS  | app.api.api_v1.endpoints.spot:fetch_spot_id:145 - entity=SPOT | method=GET | route=/spots/{search_id} | returncode=200 | message=Keyword:78
  3. 2023-10-02 16:50:59.351 | DEBUG    | app.api.api_v1.endpoints.spot:fetch_spot_id:118 - entity=SPOT | method=GET | route=/spots/{search_id} | returncode=000 | message=Route_Called
  4. 2023-10-02 16:50:59.351 | DEBUG    | app.api.api_v1.endpoints.spot:fetch_spot_id:118 - entity=SPOT | method=GET | route=/spots/{search_id} | returncode=000 | message=Route_Called
  5. INFO:     10.108.0.4:40352 - "GET /api/v1/spots/78 HTTP/1.0" 200 OK
  6. 2023-10-02 16:50:59.357 | SUCCESS  | app.api.api_v1.endpoints.spot:fetch_spot_id:145 - entity=SPOT | method=GET | route=/spots/{search_id} | returncode=200 | message=Keyword:78
  7. 2023-10-02 16:50:59.357 | SUCCESS  | app.api.api_v1.endpoints.spot:fetch_spot_id:145 - entity=SPOT | method=GET | route=/spots/{search_id} | returncode=200 | message=Keyword:78
  8. 2023-10-02 16:50:59.358 | DEBUG    | app.api.api_v1.endpoints.spot:fetch_spot_id:118 - entity=SPOT | method=GET | route=/spots/{search_id} | returncode=000 | message=Route_Called
  9. INFO:     10.108.0.4:40372 - "GET /api/v1/spots/78 HTTP/1.0" 200 OK
  10. 2023-10-02 16:50:59.362 | SUCCESS  | app.api.api_v1.endpoints.spot:fetch_spot_id:145 - entity=SPOT | method=GET | route=/spots/{search_id} | returncode=200 | message=Keyword:70
  11. INFO:     10.108.0.4:40368 - "GET /api/v1/spots/78 HTTP/1.0" 200 OK
  12. INFO:     10.108.0.4:40382 - "GET /api/v1/spots/70 HTTP/1.0" 200 OK
  13. 2023-10-02 16:50:59.541 | DEBUG    | app.api.api_v1.endpoints.spot:fetch_spot_id:118 - entity=SPOT | method=GET | route=/spots/{search_id} | returncode=000 | message=Route_Called
  14. 2023-10-02 16:50:59.547 | SUCCESS  | app.api.api_v1.endpoints.spot:fetch_spot_id:145 - entity=SPOT | method=GET | route=/spots/{search_id} | returncode=200 | message=Keyword:70
  15. INFO:     10.108.0.4:40398 - "GET /api/v1/spots/70 HTTP/1.0" 200 OK
  16. 2023-10-02 16:51:00.789 | DEBUG    | app.api.api_v1.endpoints.building:search_buildings:44 - entity=BUILDING | method=GET | route=/buildings/{keyword} | returncode=000 | message=Route_Called
  17. INFO:     10.108.0.4:40414 - "GET /api/v1/buildings/?max_results=10 HTTP/1.0" 500 Internal Server Error
  18. ERROR:    Exception in ASGI application
  19. Traceback (most recent call last):
  20.   File "/usr/local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
  21.     result = await app(  # type: ignore[func-returns-value]
  22.  File "/usr/local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
  23.     return await self.app(scope, receive, send)
  24.   File "/usr/local/lib/python3.8/site-packages/fastapi/applications.py", line 269, in __call__
  25.     await super().__call__(scope, receive, send)
  26.   File "/usr/local/lib/python3.8/site-packages/starlette/applications.py", line 124, in __call__
  27.     await self.middleware_stack(scope, receive, send)
  28.   File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 184, in __call__
  29.     raise exc
  30.   File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 162, in __call__
  31.     await self.app(scope, receive, _send)
  32.   File "/usr/local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 84, in __call__
  33.     await self.app(scope, receive, send)
  34.   File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 93, in __call__
  35.     raise exc
  36.   File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
  37.     await self.app(scope, receive, sender)
  38.   File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
  39.     raise e
  40.   File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
  41.     await self.app(scope, receive, send)
  42.   File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 670, in __call__
  43.     await route.handle(scope, receive, send)
  44.   File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 266, in handle
  45.     await self.app(scope, receive, send)
  46.   File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 65, in app
  47.     response = await func(request)
  48.   File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 227, in app
  49.     raw_response = await run_endpoint_function(
  50.   File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 162, in run_endpoint_function
  51.     return await run_in_threadpool(dependant.call, **values)
  52.   File "/usr/local/lib/python3.8/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
  53.     return await anyio.to_thread.run_sync(func, *args)
  54.   File "/usr/local/lib/python3.8/site-packages/anyio/to_thread.py", line 33, in run_sync
  55.     return await get_async_backend().run_sync_in_worker_thread(
  56.   File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 2106, in run_sync_in_worker_thread
  57.     return await future
  58.   File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 833, in run
  59.     result = context.run(func, *args)
  60.   File "/app/api/api_v1/endpoints/building.py", line 56, in search_buildings
  61.     buildings = crud.building.get_multi(db=db, limit=max_results, offset=offset)
  62. TypeError: get_multi() got an unexpected keyword argument 'offset'
  63. INFO:     10.108.0.4:40726 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  64. INFO:     10.108.0.4:40742 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  65. INFO:     10.108.0.4:40756 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  66. 2023-10-02 16:51:19.703 | DEBUG    | app.api.api_v1.endpoints.user:fetch_user:133 - entity=USER | method=GET | route=/users/{search_id} | returncode=000 | message=Route_Called
  67. 2023-10-02 16:51:19.709 | SUCCESS  | app.api.api_v1.endpoints.user:fetch_user:161 - entity=USER | method=GET | route=/users/{search_id} | returncode=200 | message=Keyword:486
  68. INFO:     10.108.0.4:40768 - "GET /api/v1/users/486 HTTP/1.0" 200 OK
  69. INFO:     10.108.0.4:40780 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  70. INFO:     10.108.0.4:40784 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  71. 2023-10-02 16:51:19.901 | DEBUG    | app.api.api_v1.endpoints.userdocument:fetch_userdocument_user_id:245 - entity=USERDOCUMENT | method=GET | route=/userdocuments/user_id/{user_id | returncode=000 | message=Route_Called
  72. 2023-10-02 16:51:19.906 | SUCCESS  | app.api.api_v1.endpoints.userdocument:fetch_userdocument_user_id:275 - entity=USERDOCUMENT | method=GET | route=/userdocuments/user_id/{user_id | returncode=200 | message=Keyword:486
  73. INFO:     10.108.0.4:40814 - "GET /api/v1/userdocuments/user_id/486 HTTP/1.0" 200 OK
  74. INFO:     10.108.0.4:40800 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  75. 2023-10-02 16:51:20.152 | DEBUG    | app.api.api_v1.endpoints.token:search_tokens_by_dynamic_filter:410 - entity=TOKENS | method=POST | route=/tokens/{dynamic_filter} | returncode=000 | message=Route_Called
  76. 2023-10-02 16:51:20.156 | SUCCESS  | app.api.api_v1.endpoints.token:search_tokens_by_dynamic_filter:481 - entity=TOKENS | method=POST | route=/tokens/{dynamic_filter} | returncode=200 | message=Keyword:{'filter':_[{'key':_'user_requested.taxid',_'operation':_'eq',_'value':_'61656216000'}]}
  77. INFO:     10.108.0.4:40828 - "POST /api/v1/tokens/dynamic-filter?page=1&limit=100/ HTTP/1.0" 200 OK
  78. 2023-10-02 16:51:20.351 | DEBUG    | app.api.api_v1.endpoints.building:fetch_building_id:119 - entity=BUILDING | method=GET | route=/buildings/{search_id} | returncode=000 | message=Route_Called
  79. 2023-10-02 16:51:20.357 | SUCCESS  | app.api.api_v1.endpoints.building:fetch_building_id:148 - entity=BUILDING | method=GET | route=/buildings/{search_id} | returncode=200 | message=Keyword:8
  80. INFO:     10.108.0.4:40836 - "GET /api/v1/buildings/8 HTTP/1.0" 200 OK
  81. INFO:     10.108.0.4:55736 - "OPTIONS /api/v1/users/486 HTTP/1.0" 200 OK
  82. INFO:     10.108.0.4:55750 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  83. INFO:     10.108.0.4:55776 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 500 Internal Server Error
  84. ERROR:    Exception in ASGI application
  85. Traceback (most recent call last):
  86.   File "/usr/local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
  87.     result = await app(  # type: ignore[func-returns-value]
  88.  File "/usr/local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
  89.     return await self.app(scope, receive, send)
  90.   File "/usr/local/lib/python3.8/site-packages/fastapi/applications.py", line 269, in __call__
  91.     await super().__call__(scope, receive, send)
  92.   File "/usr/local/lib/python3.8/site-packages/starlette/applications.py", line 124, in __call__
  93.     await self.middleware_stack(scope, receive, send)
  94.   File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 184, in __call__
  95.     raise exc
  96.   File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 162, in __call__
  97.     await self.app(scope, receive, _send)
  98.   File "/usr/local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 92, in __call__
  99.     await self.simple_response(scope, receive, send, request_headers=headers)
  100.   File "/usr/local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 147, in simple_response
  101.     await self.app(scope, receive, send)
  102.   File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 93, in __call__
  103.     raise exc
  104.   File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
  105.     await self.app(scope, receive, sender)
  106.   File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
  107.     raise e
  108.   File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
  109.     await self.app(scope, receive, send)
  110.   File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 670, in __call__
  111.     await route.handle(scope, receive, send)
  112.   File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 266, in handle
  113.     await self.app(scope, receive, send)
  114.   File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 65, in app
  115.     response = await func(request)
  116.   File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 227, in app
  117.     raw_response = await run_endpoint_function(
  118.   File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 162, in run_endpoint_function
  119.     return await run_in_threadpool(dependant.call, **values)
  120.   File "/usr/local/lib/python3.8/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
  121.     return await anyio.to_thread.run_sync(func, *args)
  122.   File "/usr/local/lib/python3.8/site-packages/anyio/to_thread.py", line 33, in run_sync
  123.     return await get_async_backend().run_sync_in_worker_thread(
  124.   File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 2106, in run_sync_in_worker_thread
  125.     return await future
  126.   File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 833, in run
  127.     result = context.run(func, *args)
  128.   File "/app/api/api_v1/endpoints/user.py", line 356, in fetch_grouped_info
  129.     grouped_info = crud.user.get_grouped_info(
  130.   File "/app/crud/crud_user.py", line 128, in get_grouped_info
  131.     for token in user.token_requested:
  132.   File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 487, in __get__
  133.     return self.impl.get(state, dict_)
  134.   File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 959, in get
  135.     value = self._fire_loader_callables(state, key, passive)
  136.   File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 995, in _fire_loader_callables
  137.     return self.callable_(state, passive)
  138.   File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/strategies.py", line 863, in _load_for_state
  139.     raise orm_exc.DetachedInstanceError(
  140. sqlalchemy.orm.exc.DetachedInstanceError: Parent instance <User at 0x7f273a9d9790> is not bound to a Session; lazy load operation of attribute 'token_requested' cannot proceed (Background on this error at: https://sqlalche.me/e/14/bhk3)
  141. 2023-10-02 16:53:49.653 | DEBUG    | app.api.api_v1.endpoints.user:fetch_user:133 - entity=USER | method=GET | route=/users/{search_id} | returncode=000 | message=Route_Called
  142. 2023-10-02 16:53:49.658 | SUCCESS  | app.api.api_v1.endpoints.user:fetch_user:161 - entity=USER | method=GET | route=/users/{search_id} | returncode=200 | message=Keyword:486
  143. INFO:     10.108.0.4:55792 - "GET /api/v1/users/486 HTTP/1.0" 200 OK
  144. INFO:     10.108.0.4:55764 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  145. INFO:     10.108.0.4:55796 - "OPTIONS /api/v1/userdocuments/user_id/486 HTTP/1.0" 200 OK
  146. 2023-10-02 16:53:50.276 | DEBUG    | app.api.api_v1.endpoints.userdocument:fetch_userdocument_user_id:245 - entity=USERDOCUMENT | method=GET | route=/userdocuments/user_id/{user_id | returncode=000 | message=Route_Called
  147. 2023-10-02 16:53:50.280 | SUCCESS  | app.api.api_v1.endpoints.userdocument:fetch_userdocument_user_id:275 - entity=USERDOCUMENT | method=GET | route=/userdocuments/user_id/{user_id | returncode=200 | message=Keyword:486
  148. INFO:     10.108.0.4:55812 - "GET /api/v1/userdocuments/user_id/486 HTTP/1.0" 200 OK
  149. INFO:     10.108.0.4:55824 - "OPTIONS /api/v1/tokens/dynamic-filter?page=1&limit=100/ HTTP/1.0" 200 OK
  150. 2023-10-02 16:53:50.774 | DEBUG    | app.api.api_v1.endpoints.token:search_tokens_by_dynamic_filter:410 - entity=TOKENS | method=POST | route=/tokens/{dynamic_filter} | returncode=000 | message=Route_Called
  151. 2023-10-02 16:53:50.777 | SUCCESS  | app.api.api_v1.endpoints.token:search_tokens_by_dynamic_filter:481 - entity=TOKENS | method=POST | route=/tokens/{dynamic_filter} | returncode=200 | message=Keyword:{'filter':_[{'key':_'user_requested.taxid',_'operation':_'eq',_'value':_'61656216000'}]}
  152. INFO:     10.108.0.4:55826 - "POST /api/v1/tokens/dynamic-filter?page=1&limit=100/ HTTP/1.0" 200 OK
  153. INFO:     10.108.0.4:55832 - "OPTIONS /api/v1/buildings/8 HTTP/1.0" 200 OK
  154. 2023-10-02 16:53:51.182 | DEBUG    | app.api.api_v1.endpoints.building:fetch_building_id:119 - entity=BUILDING | method=GET | route=/buildings/{search_id} | returncode=000 | message=Route_Called
  155. 2023-10-02 16:53:51.187 | SUCCESS  | app.api.api_v1.endpoints.building:fetch_building_id:148 - entity=BUILDING | method=GET | route=/buildings/{search_id} | returncode=200 | message=Keyword:8
  156. INFO:     10.108.0.4:55842 - "GET /api/v1/buildings/8 HTTP/1.0" 200 OK
  157. 2023-10-02 17:01:56.497 | ERROR    | __main__:validation_exception_handler:42 - entity=CAPTURED_EXCEPTION | method=CAPTURED_EXCEPTION | route=/captured_exception/{exception} | returncode=422 | message=Exception_Captured.Keyword:Exception:<starlette.requests.Request_object_at_0x7f27484ef820>:_1_validation_error_for_Request_body_->_forwarded_field_required_(type=value_error.missing)
  158. INFO:     10.108.0.4:35600 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 422 Unprocessable Entity
  159. 2023-10-02 17:09:13.967 | DEBUG    | app.api.api_v1.endpoints.zapi:zapi_inbound_message:56 - entity=ZAPI | method=POST | route=/zapi/on-message-received | returncode=000 | message=Route_Called
  160. INFO:     10.108.0.4:54976 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
  161. 2023-10-02 17:09:22.506 | DEBUG    | app.api.api_v1.endpoints.zapi:zapi_inbound_message:56 - entity=ZAPI | method=POST | route=/zapi/on-message-received | returncode=000 | message=Route_Called
  162. INFO:     10.108.0.4:49976 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
  163. INFO:     10.108.0.4:49700 - "POST /api/v1/z-api/set-manual-mode/555181708362?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
  164. 2023-10-02 17:13:12.152 | DEBUG    | app.api.api_v1.endpoints.zapi:zapi_inbound_message:56 - entity=ZAPI | method=POST | route=/zapi/on-message-received | returncode=000 | message=Route_Called
  165. INFO:     10.108.0.4:35078 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
  166. 2023-10-02 17:14:46.008 | ERROR    | __main__:validation_exception_handler:42 - entity=CAPTURED_EXCEPTION | method=CAPTURED_EXCEPTION | route=/captured_exception/{exception} | returncode=422 | message=Exception_Captured.Keyword:Exception:<starlette.requests.Request_object_at_0x7f27486b9550>:_1_validation_error_for_Request_body_->_forwarded_field_required_(type=value_error.missing)
  167. INFO:     10.108.0.4:54954 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 422 Unprocessable Entity
  168. INFO:     10.108.0.4:49644 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  169. INFO:     10.108.0.4:49660 - "OPTIONS /api/v1/users/486 HTTP/1.0" 200 OK
  170. INFO:     10.108.0.4:49666 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  171. INFO:     10.108.0.4:49670 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  172. 2023-10-02 17:14:49.096 | DEBUG    | app.api.api_v1.endpoints.user:fetch_user:133 - entity=USER | method=GET | route=/users/{search_id} | returncode=000 | message=Route_Called
  173. 2023-10-02 17:14:49.131 | SUCCESS  | app.api.api_v1.endpoints.user:fetch_user:161 - entity=USER | method=GET | route=/users/{search_id} | returncode=200 | message=Keyword:486
  174. INFO:     10.108.0.4:49672 - "GET /api/v1/users/486 HTTP/1.0" 200 OK
  175. INFO:     10.108.0.4:49684 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 500 Internal Server Error
  176. ERROR:    Exception in ASGI application
  177. Traceback (most recent call last):
  178.   File "/usr/local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
  179.     result = await app(  # type: ignore[func-returns-value]
  180.  File "/usr/local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
  181.     return await self.app(scope, receive, send)
  182.   File "/usr/local/lib/python3.8/site-packages/fastapi/applications.py", line 269, in __call__
  183.     await super().__call__(scope, receive, send)
  184.   File "/usr/local/lib/python3.8/site-packages/starlette/applications.py", line 124, in __call__
  185.     await self.middleware_stack(scope, receive, send)
  186.   File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 184, in __call__
  187.     raise exc
  188.   File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 162, in __call__
  189.     await self.app(scope, receive, _send)
  190.   File "/usr/local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 92, in __call__
  191.     await self.simple_response(scope, receive, send, request_headers=headers)
  192.   File "/usr/local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 147, in simple_response
  193.     await self.app(scope, receive, send)
  194.   File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 93, in __call__
  195.     raise exc
  196.   File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
  197.     await self.app(scope, receive, sender)
  198.   File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
  199.     raise e
  200.   File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
  201.     await self.app(scope, receive, send)
  202.   File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 670, in __call__
  203.     await route.handle(scope, receive, send)
  204.   File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 266, in handle
  205.     await self.app(scope, receive, send)
  206.   File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 65, in app
  207.     response = await func(request)
  208.   File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 227, in app
  209.     raw_response = await run_endpoint_function(
  210.   File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 162, in run_endpoint_function
  211.     return await run_in_threadpool(dependant.call, **values)
  212.   File "/usr/local/lib/python3.8/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
  213.     return await anyio.to_thread.run_sync(func, *args)
  214.   File "/usr/local/lib/python3.8/site-packages/anyio/to_thread.py", line 33, in run_sync
  215.     return await get_async_backend().run_sync_in_worker_thread(
  216.   File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 2106, in run_sync_in_worker_thread
  217.     return await future
  218.   File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 833, in run
  219.     result = context.run(func, *args)
  220.   File "/app/api/api_v1/endpoints/user.py", line 356, in fetch_grouped_info
  221.     grouped_info = crud.user.get_grouped_info(
  222.   File "/app/crud/crud_user.py", line 128, in get_grouped_info
  223.     for token in user.token_requested:
  224.   File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 487, in __get__
  225.     return self.impl.get(state, dict_)
  226.   File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 959, in get
  227.     value = self._fire_loader_callables(state, key, passive)
  228.   File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 995, in _fire_loader_callables
  229.     return self.callable_(state, passive)
  230.   File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/strategies.py", line 863, in _load_for_state
  231.     raise orm_exc.DetachedInstanceError(
  232. sqlalchemy.orm.exc.DetachedInstanceError: Parent instance <User at 0x7f2748c17df0> is not bound to a Session; lazy load operation of attribute 'token_requested' cannot proceed (Background on this error at: https://sqlalche.me/e/14/bhk3)
  233. INFO:     10.108.0.4:49676 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  234. INFO:     10.108.0.4:49692 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
  235. INFO:     10.108.0.4:49704 - "OPTIONS /api/v1/userdocuments/user_id/486 HTTP/1.0" 200 OK
  236. 2023-10-02 17:14:51.063 | DEBUG    | app.api.api_v1.endpoints.userdocument:fetch_userdocument_user_id:245 - entity=USERDOCUMENT | method=GET | route=/userdocuments/user_id/{user_id | returncode=000 | message=Route_Called
  237. 2023-10-02 17:14:51.077 | SUCCESS  | app.api.api_v1.endpoints.userdocument:fetch_userdocument_user_id:275 - entity=USERDOCUMENT | method=GET | route=/userdocuments/user_id/{user_id | returncode=200 | message=Keyword:486
  238. INFO:     10.108.0.4:49714 - "GET /api/v1/userdocuments/user_id/486 HTTP/1.0" 200 OK
  239. INFO:     10.108.0.4:49730 - "OPTIONS /api/v1/tokens/c5041dc9-c74e-4509-a665-45b7114b2e7a HTTP/1.0" 200 OK
  240. INFO:     10.108.0.4:49740 - "OPTIONS /api/v1/tokens/dynamic-filter?page=1&limit=100/ HTTP/1.0" 200 OK
  241. 2023-10-02 17:14:53.695 | DEBUG    | app.api.api_v1.endpoints.token:fetch_token_id:507 - entity=TOKENS | method=GET | route=/tokens/{search_id} | returncode=000 | message=Route_Called
  242. 2023-10-02 17:14:53.697 | DEBUG    | app.api.api_v1.endpoints.token:search_tokens_by_dynamic_filter:410 - entity=TOKENS | method=POST | route=/tokens/{dynamic_filter} | returncode=000 | message=Route_Called
  243. 2023-10-02 17:14:53.701 | SUCCESS  | app.api.api_v1.endpoints.token:search_tokens_by_dynamic_filter:481 - entity=TOKENS | method=POST | route=/tokens/{dynamic_filter} | returncode=200 | message=Keyword:{'filter':_[{'key':_'user_requested.taxid',_'operation':_'eq',_'value':_'61656216000'}]}
  244. 2023-10-02 17:14:53.716 | SUCCESS  | app.api.api_v1.endpoints.token:fetch_token_id:536 - entity=TOKENS | method=GET | route=/tokens/{search_id} | returncode=200 | message=Keyword:c5041dc9-c74e-4509-a665-45b7114b2e7a
  245. INFO:     10.108.0.4:49750 - "GET /api/v1/tokens/c5041dc9-c74e-4509-a665-45b7114b2e7a HTTP/1.0" 200 OK
  246. INFO:     10.108.0.4:49760 - "POST /api/v1/tokens/dynamic-filter?page=1&limit=100/ HTTP/1.0" 200 OK
  247. INFO:     10.108.0.4:49768 - "OPTIONS /api/v1/users/469 HTTP/1.0" 200 OK
  248. INFO:     10.108.0.4:49774 - "OPTIONS /api/v1/buildings/8 HTTP/1.0" 200 OK
  249. 2023-10-02 17:14:54.365 | DEBUG    | app.api.api_v1.endpoints.user:fetch_user:133 - entity=USER | method=GET | route=/users/{search_id} | returncode=000 | message=Route_Called
  250. 2023-10-02 17:14:54.365 | DEBUG    | app.api.api_v1.endpoints.building:fetch_building_id:119 - entity=BUILDING | method=GET | route=/buildings/{search_id} | returncode=000 | message=Route_Called
  251. 2023-10-02 17:14:54.385 | SUCCESS  | app.api.api_v1.endpoints.building:fetch_building_id:148 - entity=BUILDING | method=GET | route=/buildings/{search_id} | returncode=200 | message=Keyword:8
  252. 2023-10-02 17:14:54.386 | SUCCESS  | app.api.api_v1.endpoints.user:fetch_user:161 - entity=USER | method=GET | route=/users/{search_id} | returncode=200 | message=Keyword:469
  253. INFO:     10.108.0.4:49798 - "GET /api/v1/buildings/8 HTTP/1.0" 200 OK
  254. INFO:     10.108.0.4:49786 - "GET /api/v1/users/469 HTTP/1.0" 200 OK
  255. 2023-10-02 17:15:10.078 | DEBUG    | app.api.api_v1.endpoints.zapi:zapi_inbound_message:56 - entity=ZAPI | method=POST | route=/zapi/on-message-received | returncode=000 | message=Route_Called
  256. INFO:     10.108.0.4:55862 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
  257. 2023-10-02 17:15:25.258 | DEBUG    | app.api.api_v1.endpoints.zapi:zapi_inbound_message:56 - entity=ZAPI | method=POST | route=/zapi/on-message-received | returncode=000 | message=Route_Called
  258. INFO:     10.108.0.4:54772 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
  259. 2023-10-02 17:15:56.329 | DEBUG    | app.api.api_v1.endpoints.zapi:zapi_inbound_message:56 - entity=ZAPI | method=POST | route=/zapi/on-message-received | returncode=000 | message=Route_Called
  260. INFO:     10.108.0.4:56772 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
  261. 2023-10-02 17:16:50.422 | DEBUG    | app.api.api_v1.endpoints.zapi:zapi_inbound_message:56 - entity=ZAPI | method=POST | route=/zapi/on-message-received | returncode=000 | message=Route_Called
  262. INFO:     10.108.0.4:43990 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
  263.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement