Skip to content
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

unknown Bson binary subtype 2 #5

Open
wojtnar opened this issue Oct 19, 2015 · 3 comments
Open

unknown Bson binary subtype 2 #5

wojtnar opened this issue Oct 19, 2015 · 3 comments

Comments

@wojtnar
Copy link

wojtnar commented Oct 19, 2015

I'm getting this error:

unknown Bson binary subtype 2

http://api.mongodb.org/python/current/api/bson/binary.html
bson.binary.OLD_BINARY_SUBTYPE = 2
Old BSON binary subtype for binary data.

Is it just the matter of adding the following case in Data,Bson,Binary?
0x02 -> return $ Bin (Binary b)

@gregwebs
Copy link

Probably. Give it a shot. Seems like that field type has been deprecated for a long time.

@wojtnar
Copy link
Author

wojtnar commented Oct 19, 2015

The database in question is running on MongoDB 2.6, but indeed it has been created years ago.

The change seems to work. May I create another pull request? Looks like old UUID subtypes are supported.

@gregwebs
Copy link

Pull request would be great

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

No branches or pull requests

2 participants