You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-go-driver
I am getting this error ("IntDecodeValue can only truncate float64 to an integer type when truncation is enabled") in my logs and tried to see how to turn truncate on but I cannot see how to do that. Can someone help me figure that out please?
Divjot Arora
unread,
Dec 3, 2019, 11:31:02 AM12/3/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-go-driver
Hi Paul,
Sorry this isn't documented yet. I actually have some proposed documentation for this and other struct behavior in https://github.com/mongodb/mongo-go-driver/pull/239 right now. You can do this with the "truncate" struct tag on the integer field that is causing the error. For example:
type Foostruct{ Barint`bson:",truncate"` }
Paul A. Fortin
unread,
Dec 3, 2019, 11:56:14 AM12/3/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-go-driver
Hi Divjot,
That worked but I had to add it to all the ints since I did not know which one was the culprit.. I'll hunt it down...