Skip to content

msgpack: Add 1.0.0 version support#167

Closed
artembo wants to merge 1 commit intomasterfrom
artembo/gh-155-msgpack-fix
Closed

msgpack: Add 1.0.0 version support#167
artembo wants to merge 1 commit intomasterfrom
artembo/gh-155-msgpack-fix

Conversation

@artembo
Copy link
Contributor

@artembo artembo commented Aug 24, 2020

Fix for msgpack version 1.0.0 where strict_map_key param was removed.

Please see #155 issue for details.

Since msgpack 1.0.0 was released Unpacker does not have strict_map_key param
and it is True by default now.

It makes the Connector fail with an error: ValueError: int is not allowed for map key

The PR contains a fix suggested by @Totktonada here in the PR #156 which is stuck.

Close related PR #156 please when this one is merged in master.

@artembo artembo requested a review from Totktonada August 24, 2020 19:57
@artembo artembo linked an issue Aug 24, 2020 that may be closed by this pull request
Since msgpack 1.0.0 was released Unpacker does not have
strict_map_key param and it is True by default now.

It makes the Connector fail with an error:
`ValueError: int is not allowed for map key`

To solve this issue the __init__ method of the Response
object was refactored and the strict_map_key param is
added for versions less than 1.0.0

Fixes #155
@artembo artembo force-pushed the artembo/gh-155-msgpack-fix branch from fa34c9f to 4fe621e Compare August 24, 2020 20:57
@Totktonada Totktonada mentioned this pull request Aug 26, 2020
@Totktonada
Copy link
Contributor

Closed in favor of PR #173.

@Totktonada Totktonada closed this Aug 29, 2020
@DifferentialOrange DifferentialOrange deleted the artembo/gh-155-msgpack-fix branch November 9, 2022 10:35
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.

New python-msgpack version brokes connector

2 participants