Skip to content

msgpack: Add 1.0.0 version support #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

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
Member

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