From b2210105cb782bc0c8f0b319633bcfbff06a200d Mon Sep 17 00:00:00 2001 From: FDKost Date: Fri, 26 Dec 2025 22:25:22 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=B1=D0=B0=D0=B3?= =?UTF-8?q?=D0=BE=D0=B2,=20=D0=B8=D0=BD=D1=82=D0=B5=D0=B3=D1=80=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20=D1=81=20=D1=84=D1=80=D0=BE=D0=BD=D1=82?= =?UTF-8?q?=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/__pycache__/__init__.cpython-313.pyc | Bin 191 -> 176 bytes .../app/__pycache__/config.cpython-313.pyc | Bin 267 -> 252 bytes .../app/__pycache__/main.cpython-313.pyc | Bin 3792 -> 3775 bytes .../api/__pycache__/__init__.cpython-313.pyc | Bin 195 -> 180 bytes .../app/api/__pycache__/deps.cpython-313.pyc | Bin 1889 -> 1874 bytes .../v1/__pycache__/__init__.cpython-313.pyc | Bin 280 -> 265 bytes .../app/api/v1/__pycache__/ai.cpython-313.pyc | Bin 3526 -> 3511 bytes .../api/v1/__pycache__/auth.cpython-313.pyc | Bin 3282 -> 3267 bytes .../api/v1/__pycache__/images.cpython-313.pyc | Bin 3050 -> 3035 bytes .../v1/__pycache__/rewards.cpython-313.pyc | Bin 5918 -> 5903 bytes .../api/v1/__pycache__/router.cpython-313.pyc | Bin 1139 -> 1124 bytes .../v1/__pycache__/schedules.cpython-313.pyc | Bin 6531 -> 6792 bytes .../api/v1/__pycache__/tasks.cpython-313.pyc | Bin 7023 -> 7008 bytes .../v1/__pycache__/websocket.cpython-313.pyc | Bin 5674 -> 5659 bytes new-planet-backend/app/api/v1/schedules.py | 8 + .../core/__pycache__/__init__.cpython-313.pyc | Bin 480 -> 465 bytes .../core/__pycache__/config.cpython-313.pyc | Bin 4415 -> 4400 bytes .../core/__pycache__/logging.cpython-313.pyc | Bin 1445 -> 1430 bytes .../core/__pycache__/security.cpython-313.pyc | Bin 4452 -> 4437 bytes .../crud/__pycache__/__init__.cpython-313.pyc | Bin 452 -> 437 bytes .../app/crud/__pycache__/base.cpython-313.pyc | Bin 4562 -> 4547 bytes .../crud/__pycache__/schedule.cpython-313.pyc | Bin 3476 -> 3461 bytes .../app/crud/__pycache__/task.cpython-313.pyc | Bin 2221 -> 2206 bytes .../app/crud/__pycache__/user.cpython-313.pyc | Bin 2955 -> 2940 bytes .../db/__pycache__/__init__.cpython-313.pyc | Bin 533 -> 518 bytes .../app/db/__pycache__/base.cpython-313.pyc | Bin 1307 -> 1292 bytes .../db/__pycache__/session.cpython-313.pyc | Bin 1261 -> 1246 bytes new-planet-backend/app/logs/app.log | 284 ++++++++++++++++++ new-planet-backend/app/main.py | 2 +- .../__pycache__/__init__.cpython-313.pyc | Bin 606 -> 591 bytes .../__pycache__/auth.cpython-313.pyc | Bin 2428 -> 2413 bytes .../__pycache__/cors.cpython-313.pyc | Bin 734 -> 719 bytes .../__pycache__/error_handler.cpython-313.pyc | Bin 1895 -> 1880 bytes .../__pycache__/rate_limiter.cpython-313.pyc | Bin 2070 -> 2055 bytes .../__pycache__/__init__.cpython-313.pyc | Bin 533 -> 518 bytes .../ai_conversation.cpython-313.pyc | Bin 1217 -> 1202 bytes .../models/__pycache__/reward.cpython-313.pyc | Bin 1180 -> 1165 bytes .../__pycache__/schedule.cpython-313.pyc | Bin 1136 -> 1121 bytes .../models/__pycache__/task.cpython-313.pyc | Bin 1292 -> 1277 bytes .../models/__pycache__/user.cpython-313.pyc | Bin 1480 -> 1465 bytes .../__pycache__/__init__.cpython-313.pyc | Bin 982 -> 967 bytes .../schemas/__pycache__/ai.cpython-313.pyc | Bin 5331 -> 5316 bytes .../__pycache__/reward.cpython-313.pyc | Bin 2260 -> 2245 bytes .../__pycache__/schedule.cpython-313.pyc | Bin 2149 -> 2134 bytes .../schemas/__pycache__/task.cpython-313.pyc | Bin 2532 -> 2517 bytes .../schemas/__pycache__/token.cpython-313.pyc | Bin 965 -> 950 bytes .../schemas/__pycache__/user.cpython-313.pyc | Bin 2210 -> 2195 bytes .../__pycache__/__init__.cpython-313.pyc | Bin 943 -> 928 bytes .../ai_agent_client.cpython-313.pyc | Bin 6194 -> 6179 bytes .../__pycache__/auth_service.cpython-313.pyc | Bin 3474 -> 3459 bytes .../__pycache__/cache_service.cpython-313.pyc | Bin 4519 -> 4504 bytes .../__pycache__/chat_service.cpython-313.pyc | Bin 4163 -> 4148 bytes .../gigachat_service.cpython-313.pyc | Bin 7704 -> 7689 bytes .../schedule_generator.cpython-313.pyc | Bin 6491 -> 6476 bytes .../storage_service.cpython-313.pyc | Bin 4002 -> 3987 bytes 55 files changed, 293 insertions(+), 1 deletion(-) create mode 100644 new-planet-backend/app/logs/app.log diff --git a/new-planet-backend/app/__pycache__/__init__.cpython-313.pyc b/new-planet-backend/app/__pycache__/__init__.cpython-313.pyc index 76e43cecd63ad2f1f2e381bfb6e5cb1aa6adeedd..8e0fc712818076181fdb02dc54144c506d4e76c7 100644 GIT binary patch delta 27 hcmdnbxPg)TGcPX}0}$A4^qa_S%;-PSUUy=(3jkq62R#4) delta 27 hcmdnMxSx^xGcPX}0}wpee8u|;R%!e{_`g$XkN diff --git a/new-planet-backend/app/__pycache__/main.cpython-313.pyc b/new-planet-backend/app/__pycache__/main.cpython-313.pyc index adcc33800e7b8c050e1dfb33e965ae331ecaf201..d177bcb1097bea2b6c43823f747b2393efd38f4f 100644 GIT binary patch delta 74 zcmca0yI+>~GcPX}0}veF=$BcvkvEu~(R*?tyYA+>?5CMH*bVf+aB~rt3yYN44PL<; Z{Nnv}opql%Sy|aWurjbn6=?xA0{|k#6aoMM delta 76 zcmdlldqI}>GcPX}0}wpe<&{~okvEu~F=}!myYA+C_FGI`oQ6i`dImsfxH*x_g+)r@ c2Cv`^e)0ag&brT>tgLJwSQ%KPinM^*0Z#iAf&c&j diff --git a/new-planet-backend/app/api/__pycache__/__init__.cpython-313.pyc b/new-planet-backend/app/api/__pycache__/__init__.cpython-313.pyc index 24c60ba5c47d8a0137500a9b9a7bf1fa046180a5..ce2e9e01c2d6e20484e9bb6b56a2b9fd4a1fb51b 100644 GIT binary patch delta 27 hcmX@ixP_7XGcPX}0}$A4^qa_S%ose;UUy=(2LNI;2TcF~ delta 27 hcmdnOc$ksE?C;(ne2jKt! delta 27 hcmeBVn!&{VnU|M~0SF%K@|wt9&6ql|U3cQr6aZ(72#5dx diff --git a/new-planet-backend/app/api/v1/__pycache__/ai.cpython-313.pyc b/new-planet-backend/app/api/v1/__pycache__/ai.cpython-313.pyc index da73169c4ca364dbe3c50b09808f62a5432293d7..ce54a4b6aae30d9d3e3aaabafc53f0a5b841516f 100644 GIT binary patch delta 31 lcmX>my&D?Ce*#VD!2?78B delta 31 mcmdlkeN3ABGcPX}0}wpe<+YLfFe_vHkIh93s^FkIw4giX12u%P0 delta 31 lcmX>sc}bG{GcPX}0}wpe<+YJJl7%sGaw?1N=4KWL4gi)z2=o8| diff --git a/new-planet-backend/app/api/v1/__pycache__/images.cpython-313.pyc b/new-planet-backend/app/api/v1/__pycache__/images.cpython-313.pyc index b0e280485bafdfb12f16c2974f1426ff1fc98658..c405b420da837aff2cee2520c5760f7611be0eae 100644 GIT binary patch delta 31 lcmaDQep{UTGcPX}0}$A4^xMdNoRu+T@?}=t&HQY)Spk>O32*=a delta 31 mcmcaD{z{ztGcPX}0}wpe<+YLfI4fiF$A=D)0pf&h#Y2_gUh delta 31 lcmeCzo2SS9nU|M~0SF%K^4iF~m6b7N@GcPX}0}$A4^xMeI$IKWqS&CVAa~QKMBLIfR2XFuY delta 31 lcmaFD@tK4BGcPX}0}wpe<+YKUkC`!fvJ|uKW(#H=MgWqb2p0eV diff --git a/new-planet-backend/app/api/v1/__pycache__/schedules.cpython-313.pyc b/new-planet-backend/app/api/v1/__pycache__/schedules.cpython-313.pyc index 21d8e140d17ebc28285e9e060c368c21b6c530bc..56d5a1eea85420f2b3732973e78da7aeb64359b0 100644 GIT binary patch delta 565 zcmZoR?l9&1%*)Hg00b7h{W7&gH}aLUF@{fWW7FMyh;0iq>#!dBalpH0jh!lRv@Dph(9l3 zoP3a7bF(LpBqL8WOqL-?WU>LTm`D&0Tm;UT{F+@-kR_Bwg#qZXwLokD#9Wi}c!L?a zCm-T9Wrg_TJFg#`J5W>cp2^;P{e(QD${=9zQHnvpl@aD86QJHEDQ5x3IgHL+EOQ<0 zfXqYEjLtkPhh)@&?8D5A&U`F~S=d2r9!3z!2P8KO@;_x{OxgThU>-AL_2y|JN0_yE z8AWag%70)6(hr2hKClAm4{QvaqF>m7tk290O#X}?m_ULGlUpQIjU_?KMLsYC=?6e< htUwy5Tv+@AJBY;r(#Q#9fi#+bU;>F*Oui$r8~~G)hq3?w delta 324 zcmeA$Z8qln%*)Hg00a+qd1WpT-pE(Z#+Wv_jZJs+61Kz4j6IVxxSA*H^070rO?KyY zU}Txx!7Vp=HMc*b!{p!G7K%5xg&X`oGBXI+{w(GPn$l$H$ildr(UFN|4?B>R%raR) zK!h=1^DG``MvyVAtsD$~9FuMNf*H9cPvkS5e45XX%^9e%c4#+$t&FG}Ua!7_9#8zQ+Qrj#h@RX4;X7eAxdCZK( zn`et2Vb4urY9oeqjf)J~J~g`7?fC0tre??vzwD76mC6 o`M?aM9{{zn0%@RfVet>_AQlHmBPWmr(rEsH2_$AP`Jv=;0E@m>NB{r; diff --git a/new-planet-backend/app/api/v1/__pycache__/tasks.cpython-313.pyc b/new-planet-backend/app/api/v1/__pycache__/tasks.cpython-313.pyc index 3435eff057416e418f7ca1bb506c79f7e64d175a..91b7537d8fcff61b0fea1c6765da5495f37ccfcf 100644 GIT binary patch delta 31 lcmaEF_P~t$GcPX}0}$A4^xMdt&c+x#xtL9N^Ln-eA^@6%35@^% delta 31 lcmaE0_TG&9GcPX}0}wpe<+YJJosBVRaxt6k=80_QMF6H>3N!!! diff --git a/new-planet-backend/app/api/v1/__pycache__/websocket.cpython-313.pyc b/new-planet-backend/app/api/v1/__pycache__/websocket.cpython-313.pyc index 4dd40869302ae9d5496360b8c0722bad47647f71..103e343a6749dd69c131f4c4e2a85caa26dacf5c 100644 GIT binary patch delta 31 lcmZ3bGh2uIGcPX}0}$A4^xMe2iHR|M@;)Zr&A*rogaM8g2{!-$ delta 31 mcmbQOvr32iGcPX}0}wpe<+YJ}6BA?Fv|ow)GcPX}0}%AS^xDXs#m1O8xr|MB^Axr@TmX}?2~z+7 diff --git a/new-planet-backend/app/core/__pycache__/logging.cpython-313.pyc b/new-planet-backend/app/core/__pycache__/logging.cpython-313.pyc index 088f40e048a895e9959abe7c4a9fb1064870d623..0bf572ff801c384e4076fe190f14629f1b192ac3 100644 GIT binary patch delta 31 lcmZ3=J&l|DGcPX}0}$A4^xMdNmYFel@=a#l&7v$57y*Q`2#Npz delta 31 mcmbQny_B2#GcPX}0}wpe<+YLfEHh)$M3?&4SFqd;piv2>1X1 delta 31 mcmcbr^hAmKGcPX}0}wpe<+YLfBokxu=e2LOxh2ju_& diff --git a/new-planet-backend/app/db/__pycache__/__init__.cpython-313.pyc b/new-planet-backend/app/db/__pycache__/__init__.cpython-313.pyc index 9e1db1c58981be05fd61d521ae77eae32d568313..80e3033c796122d02c216184f56aa1a6717bcdfa 100644 GIT binary patch delta 30 kcmbQr(#FF5nU|M~0SN3i`fcP+VPp)NT)?P1c@1MG0B|A)(EtDd delta 30 kcmZo;naaZbnU|M~0SF%K^4iFq!pN97xqwl3avx&_0DD#lcmMzZ diff --git a/new-planet-backend/app/db/__pycache__/base.cpython-313.pyc b/new-planet-backend/app/db/__pycache__/base.cpython-313.pyc index 673bbc0a06554af9620d02b85e073a49de139a16..4f73551c77db951c5f5d1e8a24cd9f817d941c4d 100644 GIT binary patch delta 31 lcmbQu)x*X8nU|M~0SN3i`fcR)V`B819L1!&c^XqI699Qx2jl<% delta 31 lcmeC-n$5-inU|M~0SF%K^4iGl$HW*rIf_Yla|P2BCIE#r2#Wv! diff --git a/new-planet-backend/app/db/__pycache__/session.cpython-313.pyc b/new-planet-backend/app/db/__pycache__/session.cpython-313.pyc index 94cd42367fca4a7a7273f33d24b5b1944f4cdaf8..b537d00eda02edfaf716a8692b7eace66abb338f 100644 GIT binary patch delta 31 lcmaFMd5@F(GcPX}0}$A4^xMe2n~5=S@^L2J&CJZN7y*;!2{ix! delta 31 mcmcb|`IeLWGcPX}0}wpe<+YJ}HxpyR, 'ctx': {'error': "MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)"}} + + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\api\v1\schedules.py", line 54, in create_schedule + POST /api/v1/schedules +Traceback (most recent call last): + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__ + await self.app(scope, receive, _send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 191, in __call__ + with recv_stream, send_stream, collapse_excgroups(): + ~~~~~~~~~~~~~~~~~~^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\contextlib.py", line 162, in __exit__ + self.gen.throw(value) + ~~~~~~~~~~~~~~^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_utils.py", line 85, in collapse_excgroups + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__ + response = await self.dispatch_func(request, call_next) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\middleware\rate_limiter.py", line 33, in dispatch + response = await call_next(request) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next + raise app_exc from app_exc.__cause__ or app_exc.__context__ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 144, in coro + await self.app(scope, receive_or_disconnect, send_no_error) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__ + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__ + await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app + await app(scope, receive, sender) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__ + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 716, in __call__ + await self.middleware_stack(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 736, in app + await route.handle(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 290, in handle + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 119, in app + await wrap_app_handling_exceptions(app, request)(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app + await app(scope, receive, sender) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 105, in app + response = await f(request) + ^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 448, in app + content = await serialize_response( + ^^^^^^^^^^^^^^^^^^^^^^^^^ + ...<10 lines>... + ) + ^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 274, in serialize_response + raise ResponseValidationError( + ...<3 lines>... + ) +fastapi.exceptions.ResponseValidationError: 1 validation error: + {'type': 'get_attribute_error', 'loc': ('response', 'tasks'), 'msg': "Error extracting attribute: MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)", 'input': , 'ctx': {'error': "MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)"}} + + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\api\v1\schedules.py", line 54, in create_schedule + POST /api/v1/schedules +2025-12-26 19:36:24 - app.middleware.error_handler - ERROR - Unhandled exception: 1 validation error: + {'type': 'get_attribute_error', 'loc': ('response', 'tasks'), 'msg': "Error extracting attribute: MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)", 'input': , 'ctx': {'error': "MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)"}} + + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\api\v1\schedules.py", line 54, in create_schedule + POST /api/v1/schedules +Traceback (most recent call last): + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__ + await self.app(scope, receive, _send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 191, in __call__ + with recv_stream, send_stream, collapse_excgroups(): + ~~~~~~~~~~~~~~~~~~^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\contextlib.py", line 162, in __exit__ + self.gen.throw(value) + ~~~~~~~~~~~~~~^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_utils.py", line 85, in collapse_excgroups + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__ + response = await self.dispatch_func(request, call_next) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\middleware\rate_limiter.py", line 33, in dispatch + response = await call_next(request) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next + raise app_exc from app_exc.__cause__ or app_exc.__context__ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 144, in coro + await self.app(scope, receive_or_disconnect, send_no_error) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__ + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__ + await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app + await app(scope, receive, sender) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__ + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 716, in __call__ + await self.middleware_stack(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 736, in app + await route.handle(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 290, in handle + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 119, in app + await wrap_app_handling_exceptions(app, request)(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app + await app(scope, receive, sender) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 105, in app + response = await f(request) + ^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 448, in app + content = await serialize_response( + ^^^^^^^^^^^^^^^^^^^^^^^^^ + ...<10 lines>... + ) + ^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 274, in serialize_response + raise ResponseValidationError( + ...<3 lines>... + ) +fastapi.exceptions.ResponseValidationError: 1 validation error: + {'type': 'get_attribute_error', 'loc': ('response', 'tasks'), 'msg': "Error extracting attribute: MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)", 'input': , 'ctx': {'error': "MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)"}} + + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\api\v1\schedules.py", line 54, in create_schedule + POST /api/v1/schedules +2025-12-26 19:37:04 - root - INFO - Shutting down... +2025-12-26 19:37:04 - root - INFO - Shutting down... +2025-12-26 19:37:13 - root - INFO - Starting up... +2025-12-26 19:37:13 - root - INFO - Starting up... +2025-12-26 19:38:27 - root - INFO - Shutting down... +2025-12-26 19:38:27 - root - INFO - Shutting down... +2025-12-26 19:39:43 - root - INFO - Starting up... +2025-12-26 19:39:43 - root - INFO - Starting up... +2025-12-26 19:40:04 - app.middleware.error_handler - ERROR - Unhandled exception: 1 validation error: + {'type': 'get_attribute_error', 'loc': ('response', 'tasks'), 'msg': "Error extracting attribute: MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)", 'input': , 'ctx': {'error': "MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)"}} + + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\api\v1\schedules.py", line 54, in create_schedule + POST /api/v1/schedules +Traceback (most recent call last): + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__ + await self.app(scope, receive, _send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 191, in __call__ + with recv_stream, send_stream, collapse_excgroups(): + ~~~~~~~~~~~~~~~~~~^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\contextlib.py", line 162, in __exit__ + self.gen.throw(value) + ~~~~~~~~~~~~~~^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_utils.py", line 85, in collapse_excgroups + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__ + response = await self.dispatch_func(request, call_next) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\middleware\rate_limiter.py", line 33, in dispatch + response = await call_next(request) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next + raise app_exc from app_exc.__cause__ or app_exc.__context__ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 144, in coro + await self.app(scope, receive_or_disconnect, send_no_error) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__ + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__ + await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app + await app(scope, receive, sender) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__ + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 716, in __call__ + await self.middleware_stack(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 736, in app + await route.handle(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 290, in handle + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 119, in app + await wrap_app_handling_exceptions(app, request)(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app + await app(scope, receive, sender) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 105, in app + response = await f(request) + ^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 448, in app + content = await serialize_response( + ^^^^^^^^^^^^^^^^^^^^^^^^^ + ...<10 lines>... + ) + ^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 274, in serialize_response + raise ResponseValidationError( + ...<3 lines>... + ) +fastapi.exceptions.ResponseValidationError: 1 validation error: + {'type': 'get_attribute_error', 'loc': ('response', 'tasks'), 'msg': "Error extracting attribute: MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)", 'input': , 'ctx': {'error': "MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)"}} + + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\api\v1\schedules.py", line 54, in create_schedule + POST /api/v1/schedules +2025-12-26 19:40:04 - app.middleware.error_handler - ERROR - Unhandled exception: 1 validation error: + {'type': 'get_attribute_error', 'loc': ('response', 'tasks'), 'msg': "Error extracting attribute: MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)", 'input': , 'ctx': {'error': "MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)"}} + + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\api\v1\schedules.py", line 54, in create_schedule + POST /api/v1/schedules +Traceback (most recent call last): + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\errors.py", line 164, in __call__ + await self.app(scope, receive, _send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 191, in __call__ + with recv_stream, send_stream, collapse_excgroups(): + ~~~~~~~~~~~~~~~~~~^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\contextlib.py", line 162, in __exit__ + self.gen.throw(value) + ~~~~~~~~~~~~~~^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_utils.py", line 85, in collapse_excgroups + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 193, in __call__ + response = await self.dispatch_func(request, call_next) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\middleware\rate_limiter.py", line 33, in dispatch + response = await call_next(request) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 168, in call_next + raise app_exc from app_exc.__cause__ or app_exc.__context__ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\base.py", line 144, in coro + await self.app(scope, receive_or_disconnect, send_no_error) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\cors.py", line 85, in __call__ + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\middleware\exceptions.py", line 63, in __call__ + await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app + await app(scope, receive, sender) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__ + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 716, in __call__ + await self.middleware_stack(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 736, in app + await route.handle(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\routing.py", line 290, in handle + await self.app(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 119, in app + await wrap_app_handling_exceptions(app, request)(scope, receive, send) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app + raise exc + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app + await app(scope, receive, sender) + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 105, in app + response = await f(request) + ^^^^^^^^^^^^^^^^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 448, in app + content = await serialize_response( + ^^^^^^^^^^^^^^^^^^^^^^^^^ + ...<10 lines>... + ) + ^ + File "C:\Users\yfili\AppData\Local\Programs\Python\Python313\Lib\site-packages\fastapi\routing.py", line 274, in serialize_response + raise ResponseValidationError( + ...<3 lines>... + ) +fastapi.exceptions.ResponseValidationError: 1 validation error: + {'type': 'get_attribute_error', 'loc': ('response', 'tasks'), 'msg': "Error extracting attribute: MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)", 'input': , 'ctx': {'error': "MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)"}} + + File "C:\Users\yfili\Desktop\Planet\New-planet-api\new-planet-backend\app\api\v1\schedules.py", line 54, in create_schedule + POST /api/v1/schedules +2025-12-26 19:43:44 - root - INFO - Shutting down... +2025-12-26 19:43:44 - root - INFO - Shutting down... +2025-12-26 19:43:48 - root - INFO - Starting up... +2025-12-26 19:43:48 - root - INFO - Starting up... +2025-12-26 22:22:32 - root - INFO - Shutting down... +2025-12-26 22:22:32 - root - INFO - Shutting down... diff --git a/new-planet-backend/app/main.py b/new-planet-backend/app/main.py index 8404054..c0b49fb 100644 --- a/new-planet-backend/app/main.py +++ b/new-planet-backend/app/main.py @@ -88,7 +88,7 @@ if __name__ == "__main__": import uvicorn uvicorn.run( "app.main:app", - host="127.0.0.1", + host="0.0.0.0", port=8000, reload=settings.DEBUG ) diff --git a/new-planet-backend/app/middleware/__pycache__/__init__.cpython-313.pyc b/new-planet-backend/app/middleware/__pycache__/__init__.cpython-313.pyc index bedb90995541160c7d92e90681f8ee5a9abfad2f..e672991101519442a77977607aae7a30c9e7a375 100644 GIT binary patch delta 30 kcmcb|a-N0zGcPX}0}$A4^xMe2nvpST@^(hu$)6ds0f!I?LI3~& delta 30 lcmX@la*u`kGcPX}0}wpe<+YJ}H6vr@5yuIf+Sk^E{@LEC7xT2=f2{ delta 31 lcmcb?_neRWGcPX}0}wpe<+YJJjEOOCauSp7<_4x4EC8A437P-^ diff --git a/new-planet-backend/app/middleware/__pycache__/rate_limiter.cpython-313.pyc b/new-planet-backend/app/middleware/__pycache__/rate_limiter.cpython-313.pyc index 5a47b527dea382d7c91db88e59e911c459b31cb3..d4c5a5725c6b2f36ecfb164de7b75075dad73e66 100644 GIT binary patch delta 31 lcmbOx&@RCJnU|M~0SN3i`fcRi%fc8p`6P?(W>!`~W&nUl2iE`q delta 31 lcmZn{m?psenU|M~0SF%K^4iF~mxVER@<|rm&CgjBm;sO=34H(n diff --git a/new-planet-backend/app/models/__pycache__/__init__.cpython-313.pyc b/new-planet-backend/app/models/__pycache__/__init__.cpython-313.pyc index 8c6a960e9ed79652963505898c4f2f0cdc7891b8..f0a7e6472a47791e782551548d46726e31988683 100644 GIT binary patch delta 30 kcmbQr(#FF5nU|M~0SN3i`fcRSVPp)OT*0V2c?)AA0C4UHoWsfenU|M~0SF%K^4iG#gNZSDG7GcrW+moqMgWP!2xkBQ diff --git a/new-planet-backend/app/models/__pycache__/schedule.cpython-313.pyc b/new-planet-backend/app/models/__pycache__/schedule.cpython-313.pyc index ec3a1df00daa79fb71a9d5f212d4d1319cd05690..a56ebc21a37b4e1dfc4913c90b8c6e6530d9421b 100644 GIT binary patch delta 31 lcmeys@sNZ2GcPX}0}$A4^xMdNi-|F8@-rsg%}UIEi~yEl2>$>8 delta 31 lcmaFJ@qvT;GcPX}0}wpe<+YLf787IYWw delta 31 lcmey%*~7*CnU|M~0SF%K^4iGl$;_BIIh0v-2I0{4n diff --git a/new-planet-backend/app/schemas/__pycache__/__init__.cpython-313.pyc b/new-planet-backend/app/schemas/__pycache__/__init__.cpython-313.pyc index 05feed426b966031206ba562a7d491557c5ded57..366ba670f1f9287994f20dde442dca4a650950a1 100644 GIT binary patch delta 30 kcmcb{ew>~AGcPX}0}$A4^xMcS#>^N#S&3P9avXC70C_S8i2wiq delta 30 kcmX@kevO^`GcPX}0}wpe<+YJpjF~ZQvJ$iIWC!MU0EA`;FaQ7m diff --git a/new-planet-backend/app/schemas/__pycache__/ai.cpython-313.pyc b/new-planet-backend/app/schemas/__pycache__/ai.cpython-313.pyc index 7c950c8a9aa9e5639d904bddc67166c7a75cf3d8..2262c901efcd9a0432804fe2153dca9aa0388a22 100644 GIT binary patch delta 31 mcmcbtc|?=@GcPX}0}$A4^xMe2j)^gF@-8Ob&EJ^r3IYI^yb2ru delta 31 mcmX@2d0CVDGcPX}0}wpe<+YJ}9TQ{1qctw!=GcPX}0}wpe<+YK!go!a_as!j@=6Ou&Yyg)`2^#wGcPX}0}$A4^xMeo&cql#IhaXzb3fBHRsf7$2+RNg delta 31 lcmca6@Kk{NGcPX}0}wpe<+YL9ory7Raxjzb=0c{YtN@re33C7d diff --git a/new-planet-backend/app/schemas/__pycache__/task.cpython-313.pyc b/new-planet-backend/app/schemas/__pycache__/task.cpython-313.pyc index 9df279db24ecfb1650c47b7dbc5b32df292c0caf..c064e20c77a3689f64944bee84bdc52ba3d3e4f9 100644 GIT binary patch delta 31 lcmaDNd{vnHGcPX}0}$A4^xMdNgo!bD@&zW{%{