fix(kfet/ws): 'type' field is required #854

Merged
lbailly merged 1 commit from fix-kf-ws into master 2025-02-26 08:40:24 +01:00
Member

fix les erreurs ? J'en suis pas tout à fait sûr, les erreur apparaissent pas en local

Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: 2025-02-25 17:06:42,900 ERROR    Exception inside application: Incoming message has no 'type' attribute
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: Traceback (most recent call last):
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/routing.py", line 62, in __call__
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     return await application(scope, receive, send)
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/sessions.py", line 47, in __call__
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     return await self.inner(dict(scope, cookies=cookies), receive, send)
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/sessions.py", line 263, in __call__
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     return await self.inner(wrapper.scope, receive, wrapper.send)
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/auth.py", line 185, in __call__
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     return await super().__call__(scope, receive, send)
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/middleware.py", line 24, in __call__
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     return await self.inner(scope, receive, send)
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/routing.py", line 132, in __call__
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     return await application(
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:            ^^^^^^^^^^^^^^^^^^
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/routing.py", line 132, in __call__
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     return await application(
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:            ^^^^^^^^^^^^^^^^^^
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/routing.py", line 132, in __call__
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     return await application(
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:            ^^^^^^^^^^^^^^^^^^
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/consumer.py", line 94, in app
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     return await consumer(scope, receive, send)
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/consumer.py", line 58, in __call__
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     await await_many_dispatch(
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/utils.py", line 50, in await_many_dispatch
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     await dispatch(result)
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/consumer.py", line 71, in dispatch
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     handler = getattr(self, get_handler_name(message), None)
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:                             ^^^^^^^^^^^^^^^^^^^^^^^^^
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:   File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/consumer.py", line 19, in get_handler_name
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]:     raise ValueError("Incoming message has no 'type' attribute")
Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ValueError: Incoming message has no 'type' attribute
fix les erreurs ? J'en suis pas tout à fait sûr, les erreur apparaissent pas en local ``` Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: 2025-02-25 17:06:42,900 ERROR Exception inside application: Incoming message has no 'type' attribute Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: Traceback (most recent call last): Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/routing.py", line 62, in __call__ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: return await application(scope, receive, send) Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/sessions.py", line 47, in __call__ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: return await self.inner(dict(scope, cookies=cookies), receive, send) Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/sessions.py", line 263, in __call__ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: return await self.inner(wrapper.scope, receive, wrapper.send) Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/auth.py", line 185, in __call__ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: return await super().__call__(scope, receive, send) Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/middleware.py", line 24, in __call__ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: return await self.inner(scope, receive, send) Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/routing.py", line 132, in __call__ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: return await application( Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ^^^^^^^^^^^^^^^^^^ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/routing.py", line 132, in __call__ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: return await application( Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ^^^^^^^^^^^^^^^^^^ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/routing.py", line 132, in __call__ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: return await application( Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ^^^^^^^^^^^^^^^^^^ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/consumer.py", line 94, in app Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: return await consumer(scope, receive, send) Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/consumer.py", line 58, in __call__ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: await await_many_dispatch( Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/utils.py", line 50, in await_many_dispatch Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: await dispatch(result) Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/consumer.py", line 71, in dispatch Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: handler = getattr(self, get_handler_name(message), None) Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ^^^^^^^^^^^^^^^^^^^^^^^^^ Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: File "/nix/store/q55llk6r9qh90v7pkma1a2zbjmw2cyrd-python3-3.12.8-env/lib/python3.12/site-packages/channels/consumer.py", line 19, in get_handler_name Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: raise ValueError("Incoming message has no 'type' attribute") Feb 25 17:06:42 web03 dj-gestiocof-start[220772]: ValueError: Incoming message has no 'type' attribute ```
lbailly added the
domain -- kfet
priority -- high
labels 2025-02-25 17:08:31 +01:00
lbailly added 1 commit 2025-02-25 17:08:31 +01:00
requested review from thubrecht 2025-02-25 17:08:41 +01:00
lbailly merged commit e1bd6bc6ad into master 2025-02-26 08:40:24 +01:00
lbailly deleted branch fix-kf-ws 2025-02-26 08:40:24 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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: DGNum/gestioCOF#854
No description provided.