denodrivers / mongo

🍃 MongoDB driver for Deno 🦕
https://deno.land/x/mongo
MIT License
514 stars 95 forks source link

error upgrade 0.32.0 > 0.33.0 #412

Open damienmillet opened 6 months ago

damienmillet commented 6 months ago

Hi,

this morning I decide to upgrade my dependencies of deno and mongo

from to
std@0.214.0 std@0.224.0
mongo@v0.32.0 mongo@v0.33.0

now i hav an error :

error: Uncaught (in promise) BSONError: corrupt object bson
        throw new BSONError('corrupt object bson');

I tried to downgrade to mongo@v0.32.0 and that fix the problem.

best regards,

DM

erfanium commented 6 months ago

cc @lucsoft

lucsoft commented 6 months ago

@damienmillet Do you use an old MongoDB version?

bson had some breaking changes internally

damienmillet commented 6 months ago

@damienmillet Do you use an old MongoDB version?

bson had some breaking changes internally

MongoDB 6.0.6 2008R2plus SSL

lucsoft commented 6 months ago

@damienmillet Can you check if your issue persists on 7.0.9?

damienmillet commented 6 months ago

i ll try it

damienmillet commented 6 months ago

same issue with 7.0.9

the-abe-train commented 5 months ago

+1 for this issue. Mongo version is 7.0.11, only seeing this error with 0.33.0. It happens when I do a find query, but not findOne.