idac - has something broken about UpdateSpecialModeResult in develop branch #109

Closed
opened 2024-03-02 09:16:37 +00:00 by zaphkito · 3 comments
Contributor
app-1         | ERROR:    Exception in ASGI application
app-1         | Traceback (most recent call last):
app-1         |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 412, in run_asgi
app-1         |     result = await app(  # type: ignore[func-returns-value]
app-1         |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
app-1         |     return await self.app(scope, receive, send)
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 123, in __call__
app-1         |     await self.middleware_stack(scope, receive, send)
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 186, in __call__
app-1         |     raise exc
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 164, in __call__
app-1         |     await self.app(scope, receive, _send)
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
app-1         |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
app-1         |     raise exc
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
app-1         |     await app(scope, receive, sender)
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 758, in __call__
app-1         |     await self.middleware_stack(scope, receive, send)
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 778, in app
app-1         |     await route.handle(scope, receive, send)
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 299, in handle
app-1         |     await self.app(scope, receive, send)
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 79, in app
app-1         |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
app-1         |     raise exc
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
app-1         |     await app(scope, receive, sender)
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 74, in app
app-1         |     response = await func(request)
app-1         |   File "/app/titles/idac/index.py", line 136, in render_POST
app-1         |     return JSONResponseNoASCII(resp)
app-1         |   File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 41, in __init__
app-1         |     self.body = self.render(content)
app-1         |   File "/app/core/title.py", line 17, in render
app-1         |     return json.dumps(
app-1         |   File "/usr/local/lib/python3.9/json/__init__.py", line 234, in dumps
app-1         |     return cls(
app-1         |   File "/usr/local/lib/python3.9/json/encoder.py", line 199, in encode
app-1         |     chunks = self.iterencode(o, _one_shot=True)
app-1         |   File "/usr/local/lib/python3.9/json/encoder.py", line 257, in iterencode
app-1         |     return _iterencode(o, 0)
app-1         |   File "/usr/local/lib/python3.9/json/encoder.py", line 179, in default
app-1         |     raise TypeError(f'Object of type {o.__class__.__name__} '
app-1         | TypeError: Object of type coroutine is not JSON serializable
app-1         | /usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py:421: RuntimeWarning: coroutine 'IDACSeason2._generate_special_data' was never awaited
app-1         |   self.transport.close()
app-1         | RuntimeWarning: Enable tracemalloc to get the object allocation traceback
``` app-1 | ERROR: Exception in ASGI application app-1 | Traceback (most recent call last): app-1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 412, in run_asgi app-1 | result = await app( # type: ignore[func-returns-value] app-1 | File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__ app-1 | return await self.app(scope, receive, send) app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 123, in __call__ app-1 | await self.middleware_stack(scope, receive, send) app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 186, in __call__ app-1 | raise exc app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 164, in __call__ app-1 | await self.app(scope, receive, _send) app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ app-1 | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app app-1 | raise exc app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app app-1 | await app(scope, receive, sender) app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 758, in __call__ app-1 | await self.middleware_stack(scope, receive, send) app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 778, in app app-1 | await route.handle(scope, receive, send) app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 299, in handle app-1 | await self.app(scope, receive, send) app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 79, in app app-1 | await wrap_app_handling_exceptions(app, request)(scope, receive, send) app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app app-1 | raise exc app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app app-1 | await app(scope, receive, sender) app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 74, in app app-1 | response = await func(request) app-1 | File "/app/titles/idac/index.py", line 136, in render_POST app-1 | return JSONResponseNoASCII(resp) app-1 | File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 41, in __init__ app-1 | self.body = self.render(content) app-1 | File "/app/core/title.py", line 17, in render app-1 | return json.dumps( app-1 | File "/usr/local/lib/python3.9/json/__init__.py", line 234, in dumps app-1 | return cls( app-1 | File "/usr/local/lib/python3.9/json/encoder.py", line 199, in encode app-1 | chunks = self.iterencode(o, _one_shot=True) app-1 | File "/usr/local/lib/python3.9/json/encoder.py", line 257, in iterencode app-1 | return _iterencode(o, 0) app-1 | File "/usr/local/lib/python3.9/json/encoder.py", line 179, in default app-1 | raise TypeError(f'Object of type {o.__class__.__name__} ' app-1 | TypeError: Object of type coroutine is not JSON serializable app-1 | /usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py:421: RuntimeWarning: coroutine 'IDACSeason2._generate_special_data' was never awaited app-1 | self.transport.close() app-1 | RuntimeWarning: Enable tracemalloc to get the object allocation traceback ```
zaphkito changed title from idac - has something broken about UpdateSpecialModeResult in decelop branch to idac - has something broken about UpdateSpecialModeResult in develop branch 2024-03-02 09:16:58 +00:00
Owner

missed an await while I was moving everything over, fixing now

missed an await while I was moving everything over, fixing now
Hay1tsme added the
bug
label 2024-03-02 22:28:10 +00:00
Hay1tsme reopened this issue 2024-03-02 22:28:48 +00:00
Owner

Should be fixed, please test at your convenience.

Should be fixed, please test at your convenience.
Hay1tsme added the
waiting
label 2024-03-02 22:29:12 +00:00
Author
Contributor

it work perfect, close now

it work perfect, close now
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Hay1tsme/artemis#109
No description provided.