Invalid json number ‘xyz’. at mongodb.bson.io.jsonscanner.getnumbertoken update error

#hope
Apr 27, 2024

You get this frustrating error when trying to update a MongoDB row.

It can be hard to debug if you are new to this.

This happens because you need to be passing in a TokenFilter to the update method, and not the TokenId itself.

--

--

#hope
#hope

Written by #hope

“If you see something that’s not right, not fair, not just, do something about it. Say something. Do something.” — Rep. John Lewis

No responses yet