Project diva arcade fututre tone gives Exception #143

Closed
opened 2024-05-23 11:28:15 +00:00 by ThatzOkay · 10 comments
Contributor

I thought id try to run project diva arcade hooking it up to artemis but every time i start the game up i got this exception in the logs

INFO: 192.168.192.33:33366 - "POST /DivaServlet/ HTTP/1.0" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.9/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.9/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 65, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 756, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 72, in app
response = await func(request)
TypeError: render_POST() missing 2 required positional arguments: 'game_code' and 'matchers'

I thought id try to run project diva arcade hooking it up to artemis but every time i start the game up i got this exception in the logs INFO: 192.168.192.33:33366 - "POST /DivaServlet/ HTTP/1.0" 500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "/usr/local/lib/python3.9/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.9/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__ return await self.app(scope, receive, send) File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 123, in __call__ await self.middleware_stack(scope, receive, send) File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 186, in __call__ raise exc File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 164, in __call__ await self.app(scope, receive, _send) File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 65, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app raise exc File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 756, in __call__ await self.middleware_stack(scope, receive, send) File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 776, in app await route.handle(scope, receive, send) File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 297, in handle await self.app(scope, receive, send) File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 77, in app await wrap_app_handling_exceptions(app, request)(scope, receive, send) File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app raise exc File "/usr/local/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app await app(scope, receive, sender) File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 72, in app response = await func(request) TypeError: render_POST() missing 2 required positional arguments: 'game_code' and 'matchers'
Collaborator

diva was untested on the develop branch so this doesn't come as a surprise

line 82 in titles/diva/index.py , put this

async def render_POST(self, request: Request) -> bytes:

instead of

async def render_POST(self, request: Request, game_code: str, matchers: Dict) -> bytes:

let me know how that goes afterward

diva was untested on the develop branch so this doesn't come as a surprise line 82 in titles/diva/index.py , put this `async def render_POST(self, request: Request) -> bytes:` instead of `async def render_POST(self, request: Request, game_code: str, matchers: Dict) -> bytes:` let me know how that goes afterward
Collaborator

issue should be fixed under the last commit 0a408baa87

issue should be fixed under the last commit https://gitea.tendokyu.moe/Hay1tsme/artemis/commit/0a408baa87f2ee31f99c3ca4d4667f994f67f3fb
Midorica added the
bug
diva
labels 2024-05-23 13:26:46 +00:00
Author
Contributor

yeah nice. I now get this artemis message so i guess it is working

yeah nice. I now get this artemis message so i guess it is working
Author
Contributor

Okay i have no succesfully registred but now after clicking start a new error arises: Error handling method handle_start_request 'coroutine' object is not iterable

[2024-05-23 22:04:57] Diva | DEBUG | {'cmd': 'start', 'req_id': '00000000TEmrO049', 'game_id': 'SBZV', 'r_ver': '7.10.00', 'kc_serial': 'A69E01A8888', 'b_serial': 'AAVE01A9999', 'place_id': '0123', 'time_stamp': '2024-05-24T07:04:57+09:00', 'start_up_mode': '1', 'cmm_dly_mod': '0', 'cmm_dly_sec': '0', 'cmm_err_mod': '0', 'country_code': 'JPN', 'region_code': '1', 'pd_id': '1', 'accept_idx': '100'}
[2024-05-23 22:04:57] Diva | ERROR | Error handling method handle_start_request 'coroutine' object is not iterable
INFO: 192.168.192.115:53860 - "POST /DivaServlet/ HTTP/1.0" 200 OK
[2024-05-23 22:04:57] Diva | INFO | pd_unlock Request
[2024-05-23 22:04:57] Diva | DEBUG | {'cmd': 'pd_unlock', 'req_id': '00000000mEmrO04a', 'game_id': 'SBZV', 'r_ver': '7.10.00', 'kc_serial': 'A69E01A8888', 'b_serial': 'AAVE01A9999', 'place_id': '0123', 'time_stamp': '2024-05-24T07:04:58+09:00', 'start_up_mode': '1', 'cmm_dly_mod': '0', 'cmm_dly_sec': '0', 'cmm_err_mod': '0', 'country_code': 'JPN', 'region_code': '1', 'pd_id': '1', 'accept_idx': '100'}
[2024-05-23 22:04:57] Diva | DEBUG | Response cmd=pd_unlock&req_id=00000000mEmrO04a&stat=ok
INFO: 192.168.192.115:53861 - "POST /DivaServlet/ HTTP/1.0" 200 OK

Okay i have no succesfully registred but now after clicking start a new error arises: Error handling method handle_start_request 'coroutine' object is not iterable [2024-05-23 22:04:57] Diva | DEBUG | {'cmd': 'start', 'req_id': '00000000TEmrO049', 'game_id': 'SBZV', 'r_ver': '7.10.00', 'kc_serial': 'A69E01A8888', 'b_serial': 'AAVE01A9999', 'place_id': '0123', 'time_stamp': '2024-05-24T07:04:57+09:00', 'start_up_mode': '1', 'cmm_dly_mod': '0', 'cmm_dly_sec': '0', 'cmm_err_mod': '0', 'country_code': 'JPN', 'region_code': '1', 'pd_id': '1', 'accept_idx': '100'} [2024-05-23 22:04:57] Diva | ERROR | Error handling method handle_start_request 'coroutine' object is not iterable INFO: 192.168.192.115:53860 - "POST /DivaServlet/ HTTP/1.0" 200 OK [2024-05-23 22:04:57] Diva | INFO | pd_unlock Request [2024-05-23 22:04:57] Diva | DEBUG | {'cmd': 'pd_unlock', 'req_id': '00000000mEmrO04a', 'game_id': 'SBZV', 'r_ver': '7.10.00', 'kc_serial': 'A69E01A8888', 'b_serial': 'AAVE01A9999', 'place_id': '0123', 'time_stamp': '2024-05-24T07:04:58+09:00', 'start_up_mode': '1', 'cmm_dly_mod': '0', 'cmm_dly_sec': '0', 'cmm_err_mod': '0', 'country_code': 'JPN', 'region_code': '1', 'pd_id': '1', 'accept_idx': '100'} [2024-05-23 22:04:57] Diva | DEBUG | Response cmd=pd_unlock&req_id=00000000mEmrO04a&stat=ok INFO: 192.168.192.115:53861 - "POST /DivaServlet/ HTTP/1.0" 200 OK
Collaborator

I'll leave that fix for someone else, it is an await missing somewhere in the handle_start_request most likely but i can't see to find which one exactly

i personally do not use the develop branch at this time so i can't do testing

I'll leave that fix for someone else, it is an await missing somewhere in the handle_start_request most likely but i can't see to find which one exactly i personally do not use the develop branch at this time so i can't do testing
Author
Contributor

Do you maybe have an idea where it could be i could try to make myself a pr

Do you maybe have an idea where it could be i could try to make myself a pr
Collaborator

one member in the discord pushed a fix, you can find it in the new commit here : a5fd6e65d6

one member in the discord pushed a fix, you can find it in the new commit here : https://gitea.tendokyu.moe/Hay1tsme/artemis/commit/a5fd6e65d6dc9a8a68a46b3a86f3b9d2344a5910
Midorica added the
testing
label 2024-05-25 14:32:04 +00:00
Author
Contributor

Thanks I'll test out tommorow

Thanks I'll test out tommorow
Author
Contributor

also found the missing awaits.

#145

also found the missing awaits. https://gitea.tendokyu.moe/Hay1tsme/artemis/pulls/145
Collaborator

alright i have merged the PR you did for the missing awaits , thank you for testing!

alright i have merged the PR you did for the missing awaits , thank you for testing!
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#143
No description provided.