pyo3_runtime.PanicException: called Result::unwrap()
on an Err
value: UnexpectedValue
#98
Labels
bug
Something isn't working
Description
am not really sure if this is a bug or a mistake by me.
i created a websocket consumer that broadcast received updates from the frontend (NextJS with tiptapJS and HocusPocus provider) to connected clients using the consumer example (django_channels_consumer.YjsConsumer).
inside receive function
this condition is always true since the first byte of the received payload is never 0 or 1, therefore the server Ydoc file stays empty.
but when i try to apply the received payload directly to Doc,
i get this error.
am i doing something wrong, or is it that the received bytes need some processing before applied.
Reproduce
just apply the received bytes directly to ydoc
I can try to make an isolated repro if necessary.
The text was updated successfully, but these errors were encountered: