Troubleshooting Guide - RigidStudios/underground-rd GitHub Wiki

The Guide to Troubleshooting DBM, by a self-proclaimed genius...

Click here or scroll all the way down to get to the "How to ask for Support Properly" category. Only if this troubleshooting didn't work.


If in doubt, put quotes around it. (Check Variable/Check Member Data/Control Variable)

Seriously, the amount of times people have come with two missing quotes in their Check Variable is amazing. This should be done if either of your comparison fields should be strings.

If they are numbers, keep them as numbers. Also, don't ever use Equals Exactly unless you know what it does. If you want to put a variable in the comparison field however, input should go from "blablaputtexthere" to `${tempVars("text")}`.


I've got an error, I don't know where it came from!

There are two ways to go about diagnosing and fixing this:

  1. Put Send Message to Console (Logs) around all your actions, It'll stop after a certain log, the action directly after that is the guilty one. Now, refer to quotes
  2. Go to your logs, read the error, specifically the end of each line, it will be bot.js for a while, the action you should be looking at will be the first non-bot.js, now, check that action, refer to quotes again.

undefined

Oh no! Your variable is undefined! Check where you defined it, did you define it correctly with a valid search (For Find type actions)? Did you define it at all (Maybe you deleted the action)? Or maybe did you define it after the action where you wanted to use it? Are you storing from a list (The List Item has not been added usually)? If any of these are correct, fix it!

Else, "I don't care if it's undefined! I just don't want to show undefined as the text!", create a Check Variable action that checks if the variable equals undefined (without quotes for once), if true: continue actions, if false: end action sequence. After the Check Variable, add a "Control Variable", with quotes, that changes the variable to the text you want it to display instead of undefined.

undefined for scripts

Sometimes your Script will return undefined to DBM, if you'd like to know when it becomes undefined, add a line in your script that logs the variable, console.log(variable). If you're using normal storage from a script alter the console.log to correspond to that, so put the function you're performing inside the console.log(**here**).


SyntaxError: ____

Current most common types of SyntaxErrors:

  1. missing ) after argument list - Check your Script, you forgot a ')', for more help with that, use a Syntax Validator
  2. Unexpected token u in JSON at position 0 - In Parse from Stored JSON, you're trying to read from an undefined JSON, check the action, did you enter the variable name correctly? (This action does not want your inserted variable, it wants only the name) Did you even define the JSON? (Possible definers: Read File, Store JSON From WebAPI, Parse From Stored JSON)
  3. Unexpected token '___' refer to quotes
  4. Unexpected identifier at continue reading and refer to unknown errors.

TypeError: Cannot read property '____' of ____

If your second blank is undefined, you're in luck! Refer to undefined Otherwise, it might be null, refer to undefined but keep in mind that actions will only return null if they can't define the variable, they've been asked to and they've tried, but they haven't succeeded.

If this is being used with Loop Through List or any List type actions, it means that the Item it is trying to get doesn't exist, likely because your list isn't long enough or simply is undefined.


ENOENT; no such file or directory, open './---/---' (Read File)

Read File will emit this error when it can't find the file it's being asked to read, got to that directory and check that the file is there. Your file must have an extension, and can not be zipped (Make sure to include the extension in Read File). Also, Read File is unable to read files from URL, please use Store HTML From Webpage for that


canvas.node is not a valid Win32 Application

Good question that is, there is currently no fix as far as I'm aware. If you believe that you have a fix, edit this Wiki and add the solution!


DiscordAPIError: Invalid Form Body

npm i [email protected] in your cmd whilst inside the bot directory.


Music deserves its own category...


Bot leaves/skips in the middle of playing music (Play File/URL/YouTube Video/YouTube Playlist)

Do ;grab WrexMusicFix in #bot-commands.


Bot joins Voice Channel but immediately leaves

WIP