I'm still confused about Uncaught Error: Field or method "total_documents" does not already exist, and can't create it on undefined
But the "FIFO_FULL" flag really is your problem - some part of your program is taking as long time to execute, and during that time the FIFO gets full and characters get dropped.
Which board are you using this on? And you're connecting over USB?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm still confused about
Uncaught Error: Field or method "total_documents" does not already exist, and can't create it on undefined
But the
"FIFO_FULL"
flag really is your problem - some part of your program is taking as long time to execute, and during that time the FIFO gets full and characters get dropped.Which board are you using this on? And you're connecting over USB?