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

Decoding objectId #2

Open
cadaxapy opened this issue Mar 15, 2019 · 3 comments
Open

Decoding objectId #2

cadaxapy opened this issue Mar 15, 2019 · 3 comments

Comments

@cadaxapy
Copy link

giving this error: cannot decode objectID into a pmongo.ObjectId

@amsokol
Copy link
Owner

amsokol commented Mar 27, 2019

Hi,

I am sorry for the answer delay.
Could you please provide me details how I can reproduce error.

Thanks

@Firenox89
Copy link

I got this behavior too, because I did not register your codecs.
Adding this solved my issue:

reg := codecs.Register(bson.NewRegistryBuilder()).Build()
clientOptions := options.Client().ApplyURI("mongodb://localhost:27017").SetRegistry(reg)

@hyperxpizza
Copy link

Same issue here although i registered the codecs

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

4 participants