Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- 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
- 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
- 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
- INFO: 10.108.0.4:40352 - "GET /api/v1/spots/78 HTTP/1.0" 200 OK
- 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
- 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
- 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
- INFO: 10.108.0.4:40372 - "GET /api/v1/spots/78 HTTP/1.0" 200 OK
- 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
- INFO: 10.108.0.4:40368 - "GET /api/v1/spots/78 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:40382 - "GET /api/v1/spots/70 HTTP/1.0" 200 OK
- 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
- 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
- INFO: 10.108.0.4:40398 - "GET /api/v1/spots/70 HTTP/1.0" 200 OK
- 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
- INFO: 10.108.0.4:40414 - "GET /api/v1/buildings/?max_results=10 HTTP/1.0" 500 Internal Server Error
- ERROR: Exception in ASGI application
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
- result = await app( # type: ignore[func-returns-value]
- File "/usr/local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
- return await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/fastapi/applications.py", line 269, in __call__
- await super().__call__(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/applications.py", line 124, in __call__
- await self.middleware_stack(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 184, in __call__
- raise exc
- File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 162, in __call__
- await self.app(scope, receive, _send)
- File "/usr/local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 84, in __call__
- await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 93, in __call__
- raise exc
- File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
- await self.app(scope, receive, sender)
- File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
- raise e
- File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
- await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 670, in __call__
- await route.handle(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 266, in handle
- await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 65, in app
- response = await func(request)
- File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 227, in app
- raw_response = await run_endpoint_function(
- File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 162, in run_endpoint_function
- return await run_in_threadpool(dependant.call, **values)
- File "/usr/local/lib/python3.8/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
- return await anyio.to_thread.run_sync(func, *args)
- File "/usr/local/lib/python3.8/site-packages/anyio/to_thread.py", line 33, in run_sync
- return await get_async_backend().run_sync_in_worker_thread(
- File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 2106, in run_sync_in_worker_thread
- return await future
- File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 833, in run
- result = context.run(func, *args)
- File "/app/api/api_v1/endpoints/building.py", line 56, in search_buildings
- buildings = crud.building.get_multi(db=db, limit=max_results, offset=offset)
- TypeError: get_multi() got an unexpected keyword argument 'offset'
- INFO: 10.108.0.4:40726 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:40742 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:40756 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- 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
- 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
- INFO: 10.108.0.4:40768 - "GET /api/v1/users/486 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:40780 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:40784 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- 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
- 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
- INFO: 10.108.0.4:40814 - "GET /api/v1/userdocuments/user_id/486 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:40800 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- 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
- 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'}]}
- INFO: 10.108.0.4:40828 - "POST /api/v1/tokens/dynamic-filter?page=1&limit=100/ HTTP/1.0" 200 OK
- 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
- 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
- INFO: 10.108.0.4:40836 - "GET /api/v1/buildings/8 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:55736 - "OPTIONS /api/v1/users/486 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:55750 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:55776 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 500 Internal Server Error
- ERROR: Exception in ASGI application
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
- result = await app( # type: ignore[func-returns-value]
- File "/usr/local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
- return await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/fastapi/applications.py", line 269, in __call__
- await super().__call__(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/applications.py", line 124, in __call__
- await self.middleware_stack(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 184, in __call__
- raise exc
- File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 162, in __call__
- await self.app(scope, receive, _send)
- File "/usr/local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 92, in __call__
- await self.simple_response(scope, receive, send, request_headers=headers)
- File "/usr/local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 147, in simple_response
- await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 93, in __call__
- raise exc
- File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
- await self.app(scope, receive, sender)
- File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
- raise e
- File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
- await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 670, in __call__
- await route.handle(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 266, in handle
- await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 65, in app
- response = await func(request)
- File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 227, in app
- raw_response = await run_endpoint_function(
- File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 162, in run_endpoint_function
- return await run_in_threadpool(dependant.call, **values)
- File "/usr/local/lib/python3.8/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
- return await anyio.to_thread.run_sync(func, *args)
- File "/usr/local/lib/python3.8/site-packages/anyio/to_thread.py", line 33, in run_sync
- return await get_async_backend().run_sync_in_worker_thread(
- File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 2106, in run_sync_in_worker_thread
- return await future
- File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 833, in run
- result = context.run(func, *args)
- File "/app/api/api_v1/endpoints/user.py", line 356, in fetch_grouped_info
- grouped_info = crud.user.get_grouped_info(
- File "/app/crud/crud_user.py", line 128, in get_grouped_info
- for token in user.token_requested:
- File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 487, in __get__
- return self.impl.get(state, dict_)
- File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 959, in get
- value = self._fire_loader_callables(state, key, passive)
- File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 995, in _fire_loader_callables
- return self.callable_(state, passive)
- File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/strategies.py", line 863, in _load_for_state
- raise orm_exc.DetachedInstanceError(
- 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)
- 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
- 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
- INFO: 10.108.0.4:55792 - "GET /api/v1/users/486 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:55764 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:55796 - "OPTIONS /api/v1/userdocuments/user_id/486 HTTP/1.0" 200 OK
- 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
- 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
- INFO: 10.108.0.4:55812 - "GET /api/v1/userdocuments/user_id/486 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:55824 - "OPTIONS /api/v1/tokens/dynamic-filter?page=1&limit=100/ HTTP/1.0" 200 OK
- 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
- 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'}]}
- INFO: 10.108.0.4:55826 - "POST /api/v1/tokens/dynamic-filter?page=1&limit=100/ HTTP/1.0" 200 OK
- INFO: 10.108.0.4:55832 - "OPTIONS /api/v1/buildings/8 HTTP/1.0" 200 OK
- 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
- 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
- INFO: 10.108.0.4:55842 - "GET /api/v1/buildings/8 HTTP/1.0" 200 OK
- 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)
- INFO: 10.108.0.4:35600 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 422 Unprocessable Entity
- 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
- INFO: 10.108.0.4:54976 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
- 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
- INFO: 10.108.0.4:49976 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49700 - "POST /api/v1/z-api/set-manual-mode/555181708362?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
- 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
- INFO: 10.108.0.4:35078 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
- 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)
- INFO: 10.108.0.4:54954 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 422 Unprocessable Entity
- INFO: 10.108.0.4:49644 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49660 - "OPTIONS /api/v1/users/486 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49666 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49670 - "OPTIONS /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- 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
- 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
- INFO: 10.108.0.4:49672 - "GET /api/v1/users/486 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49684 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 500 Internal Server Error
- ERROR: Exception in ASGI application
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
- result = await app( # type: ignore[func-returns-value]
- File "/usr/local/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
- return await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/fastapi/applications.py", line 269, in __call__
- await super().__call__(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/applications.py", line 124, in __call__
- await self.middleware_stack(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 184, in __call__
- raise exc
- File "/usr/local/lib/python3.8/site-packages/starlette/middleware/errors.py", line 162, in __call__
- await self.app(scope, receive, _send)
- File "/usr/local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 92, in __call__
- await self.simple_response(scope, receive, send, request_headers=headers)
- File "/usr/local/lib/python3.8/site-packages/starlette/middleware/cors.py", line 147, in simple_response
- await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 93, in __call__
- raise exc
- File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
- await self.app(scope, receive, sender)
- File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
- raise e
- File "/usr/local/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
- await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 670, in __call__
- await route.handle(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 266, in handle
- await self.app(scope, receive, send)
- File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 65, in app
- response = await func(request)
- File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 227, in app
- raw_response = await run_endpoint_function(
- File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 162, in run_endpoint_function
- return await run_in_threadpool(dependant.call, **values)
- File "/usr/local/lib/python3.8/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
- return await anyio.to_thread.run_sync(func, *args)
- File "/usr/local/lib/python3.8/site-packages/anyio/to_thread.py", line 33, in run_sync
- return await get_async_backend().run_sync_in_worker_thread(
- File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 2106, in run_sync_in_worker_thread
- return await future
- File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 833, in run
- result = context.run(func, *args)
- File "/app/api/api_v1/endpoints/user.py", line 356, in fetch_grouped_info
- grouped_info = crud.user.get_grouped_info(
- File "/app/crud/crud_user.py", line 128, in get_grouped_info
- for token in user.token_requested:
- File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 487, in __get__
- return self.impl.get(state, dict_)
- File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 959, in get
- value = self._fire_loader_callables(state, key, passive)
- File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 995, in _fire_loader_callables
- return self.callable_(state, passive)
- File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/strategies.py", line 863, in _load_for_state
- raise orm_exc.DetachedInstanceError(
- 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)
- INFO: 10.108.0.4:49676 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49692 - "POST /api/v1/users/grouped_info?page=1&page_size=20 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49704 - "OPTIONS /api/v1/userdocuments/user_id/486 HTTP/1.0" 200 OK
- 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
- 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
- INFO: 10.108.0.4:49714 - "GET /api/v1/userdocuments/user_id/486 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49730 - "OPTIONS /api/v1/tokens/c5041dc9-c74e-4509-a665-45b7114b2e7a HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49740 - "OPTIONS /api/v1/tokens/dynamic-filter?page=1&limit=100/ HTTP/1.0" 200 OK
- 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
- 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
- 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'}]}
- 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
- INFO: 10.108.0.4:49750 - "GET /api/v1/tokens/c5041dc9-c74e-4509-a665-45b7114b2e7a HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49760 - "POST /api/v1/tokens/dynamic-filter?page=1&limit=100/ HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49768 - "OPTIONS /api/v1/users/469 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49774 - "OPTIONS /api/v1/buildings/8 HTTP/1.0" 200 OK
- 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
- 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
- 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
- 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
- INFO: 10.108.0.4:49798 - "GET /api/v1/buildings/8 HTTP/1.0" 200 OK
- INFO: 10.108.0.4:49786 - "GET /api/v1/users/469 HTTP/1.0" 200 OK
- 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
- INFO: 10.108.0.4:55862 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
- 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
- INFO: 10.108.0.4:54772 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
- 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
- INFO: 10.108.0.4:56772 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
- 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
- INFO: 10.108.0.4:43990 - "POST /api/v1/z-api/on-message-received?token=0a27fb8155fe4fb1a57c8d02c3410908c81dd10f8316434bb8b6e9b170047cc4498135650e82498e97f24e1ff217ade70e76b28f6bd047798127c7c8953ae37a HTTP/1.0" 200 OK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement