Hello, suddenly my bot went offline, I checked the logs and I see
awk: line 1: syntax error at or near ,
Could not find node 10.x, using 10
I tried rebuilding, I tried “node i -force”, I tried everything from other posts but it doesn’t seem to get rid of that error message (the bot is online again but I don’t know if it will stay like that)
Hey y’all, we briefly released a bug causing this earlier today. We’ve since reversed the change, but your projects may not have gotten the fixed code. We can resolve this for you, but we need to know your project name. Please post your project names here and we’ll fix them up as soon as we can.
If you just wait, within another 7-8 hours any project that’s seeing this error should have restarted and have the fixed code.
For both of your projects, and yours @glewmie, the message you’re seeing isn’t the one folks were seeing earlier, although it’s very similar. This one is expected and harmless; it’s really a warning and not an error, which is why you won’t see the “Error” beacon in the Tools / Logs button. This is Glitch making sure you know that since you didn’t tell us which version of Node you wanted we’re choosing for you and will use the default version (currently 10.x).
If you want to make the message go away you’ll need to explicitly tell Glitch what version you do want to use, which you can accomplish by adding an engines stanza in your package.json file which would look something like this:
"engines": {
"node": "10.x"
}
Put that anywhere in package.json (and set it off with the appropriate comma depending on where you put it) and the message should disappear.