Skip to content

Conversation

envirocoder
Copy link

Trying to send a dict with integer keys,
e.g.

async_to_sync(channel_layer.group_send)(
        "name",
        {"type":"test",
        "data": {1:10, 2:20},
        }

I got

  File "msgpack/_unpacker.pyx", line 195, in msgpack._cmsgpack.unpackb
ValueError: int is not allowed for map key

not familiar with the channels or redis code to know if there will be implementations else where; is it safe to relax the checking in msgpack unpacking with strict_map_key=False ?

@envirocoder
Copy link
Author

just noticed, duplicate of #233

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant