Decoding objectId
Opened this issue · 3 comments
cadaxapy commented
giving this error: cannot decode objectID into a pmongo.ObjectId
amsokol commented
Hi,
I am sorry for the answer delay.
Could you please provide me details how I can reproduce error.
Thanks
Firenox89 commented
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 commented
Same issue here although i registered the codecs