CardMaker or ONGEKI? - SDDT CMGetUserItemApi Error #104

Closed
opened 2024-02-24 11:53:51 +00:00 by zaphkito · 2 comments
Contributor

when I login Card Maker,I got this error

app-1         | [2024-02-24 11:52:48] Ongeki | INFO | v135 CMGetUserDataApi request from 192.168.1.101
app-1         | INFO:     192.168.1.101:65386 - "POST /SDDT/135/CMGetUserDataApi HTTP/1.1" 200 OK
app-1         | [2024-02-24 11:52:52] Ongeki | INFO | v135 PrinterLoginApi request from 192.168.1.101
app-1         | INFO:     192.168.1.101:65390 - "POST /SDDT/135/PrinterLoginApi HTTP/1.1" 200 OK
app-1         | [2024-02-24 11:52:52] Ongeki | INFO | v135 CMGetUserCardApi request from 192.168.1.101
app-1         | INFO:     192.168.1.101:65391 - "POST /SDDT/135/CMGetUserCardApi HTTP/1.1" 200 OK
app-1         | [2024-02-24 11:52:53] Ongeki | INFO | v135 CMGetUserCharacterApi request from 192.168.1.101
app-1         | INFO:     192.168.1.101:65392 - "POST /SDDT/135/CMGetUserCharacterApi HTTP/1.1" 200 OK
app-1         | [2024-02-24 11:52:53] Ongeki | INFO | v135 GetUserGachaApi request from 192.168.1.101
app-1         | INFO:     192.168.1.101:65393 - "POST /SDDT/135/GetUserGachaApi HTTP/1.1" 200 OK
app-1         | [2024-02-24 11:52:53] Ongeki | INFO | v135 CMGetUserItemApi request from 192.168.1.101
app-1         | INFO:     192.168.1.101:65394 - "POST /SDDT/135/CMGetUserItemApi HTTP/1.1" 500 Internal Server Error
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/ongeki/index.py", line 255, in render_POST
app-1         |     zipped = zlib.compress(json.dumps(resp, ensure_ascii=False).encode("utf-8"))
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 'OngekiBase.handle_get_user_item_api_request' was never awaited
app-1         |   self.transport.close()
app-1         | RuntimeWarning: Enable tracemalloc to get the object allocation traceback
app-1         | INFO:     192.168.1.101:65395 - "POST /SDDT/135/Ping HTTP/1.1" 200 OK

image

when I login Card Maker,I got this error ```shell app-1 | [2024-02-24 11:52:48] Ongeki | INFO | v135 CMGetUserDataApi request from 192.168.1.101 app-1 | INFO: 192.168.1.101:65386 - "POST /SDDT/135/CMGetUserDataApi HTTP/1.1" 200 OK app-1 | [2024-02-24 11:52:52] Ongeki | INFO | v135 PrinterLoginApi request from 192.168.1.101 app-1 | INFO: 192.168.1.101:65390 - "POST /SDDT/135/PrinterLoginApi HTTP/1.1" 200 OK app-1 | [2024-02-24 11:52:52] Ongeki | INFO | v135 CMGetUserCardApi request from 192.168.1.101 app-1 | INFO: 192.168.1.101:65391 - "POST /SDDT/135/CMGetUserCardApi HTTP/1.1" 200 OK app-1 | [2024-02-24 11:52:53] Ongeki | INFO | v135 CMGetUserCharacterApi request from 192.168.1.101 app-1 | INFO: 192.168.1.101:65392 - "POST /SDDT/135/CMGetUserCharacterApi HTTP/1.1" 200 OK app-1 | [2024-02-24 11:52:53] Ongeki | INFO | v135 GetUserGachaApi request from 192.168.1.101 app-1 | INFO: 192.168.1.101:65393 - "POST /SDDT/135/GetUserGachaApi HTTP/1.1" 200 OK app-1 | [2024-02-24 11:52:53] Ongeki | INFO | v135 CMGetUserItemApi request from 192.168.1.101 app-1 | INFO: 192.168.1.101:65394 - "POST /SDDT/135/CMGetUserItemApi HTTP/1.1" 500 Internal Server Error 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/ongeki/index.py", line 255, in render_POST app-1 | zipped = zlib.compress(json.dumps(resp, ensure_ascii=False).encode("utf-8")) 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 'OngekiBase.handle_get_user_item_api_request' was never awaited app-1 | self.transport.close() app-1 | RuntimeWarning: Enable tracemalloc to get the object allocation traceback app-1 | INFO: 192.168.1.101:65395 - "POST /SDDT/135/Ping HTTP/1.1" 200 OK ``` ![image](/attachments/c5927a70-4ca5-472b-a49f-a6521fd4887c)
282 KiB
zaphkito changed title from CardMaker - GetUserItemApi to CardMaker or ONGEKI? - SDDT CMGetUserItemApi Error 2024-02-24 11:56:46 +00:00
Owner

pushed a fix, please test when you get a chance

pushed a fix, please test when you get a chance
Hay1tsme added the
bug
waiting
labels 2024-03-02 22:56:10 +00:00
Author
Contributor

it work,close

it work,close
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#104
No description provided.