Glitch occasionally not running code correctly

Hello everyone, I have occasionally noted that when I run code it doesn’t work. More specifically, I am trying to connect to my database/send a response from my form to the server, I get responses of “undefined” or nothing is logged to the console. Has anyone else observed such things?
Here is my project: https://glitch.com/edit/#!/gli-forktery. When I was writing the lines that accept the POST request and connect to my MongoDB I encountered strange “undefined” errors. Everything is working fine now…