You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I try to get it with by_id this is the error:
bson.errors.InvalidId: 'report_xyz' is not a valid ObjectId, it must be a 12-byte input or a 24-character hex string
Giovanni
The text was updated successfully, but these errors were encountered:
Hi @njordr - yep this is a bug :) I incorrectly assumed that _ids will always be ObjectIds and automatically convert whatever value is passed to one, which I don't need to do - I'll fix today and push a new release to pip.
In the short-term (e.g before I fix this) you can use the following as a work around:
Hi.
I've this document:
{
"_id" : "report_xyz",
"name" : "XYZ.COM",
"site24" : {
"monitors" : [
NumberLong(27498547952905495),
NumberLong(18975984759794899),
NumberLong(19875894954998994),
NumberLong(14987598437950899),
NumberLong(17498574975919809)
]
}
}
If I try to get it with by_id this is the error:
bson.errors.InvalidId: 'report_xyz' is not a valid ObjectId, it must be a 12-byte input or a 24-character hex string
Giovanni
The text was updated successfully, but these errors were encountered: