Cannot send an empty message, code 50006Solved

The protocal webhook gives the error listed in the title but the wipe webhook seems to sort of work but just shows a picture of my map.

That would mean something is wrong with your config. Can you post it here and be sure to remove the Webhook URLs.

MJSU

That would mean something is wrong with your config. Can you post it here and be sure to remove the Webhook URLs.

{
  "Debug Level (None, Error, Warning, Info)": "Warning",
  "Command": "dw",
  "Rust Map Image Settings": {
    "Render Name": "Icons",
    "Image Resolution Scale": 0.5,
    "File Type (Jpg, Png": "Jpg"
  },
  "Send wipe message when server wipes": true,
  "Wipe Webhook url": "",
  "Send protocol message when server protocol changes": true,
  "Protocol Webhook url": "",
  "Wipe messages": [{
    "Content": "@everyone",
    "Send Mode (Always, Random)": "Always",
    "Embed": {
      "Enabled": true,
      "Title": "{server.name}",
      "Description": "The server has wiped!",
      "Url": "",
      "Embed Color": "#de8732",
      "Image Url": "attachment://map.jpg",
      "Thumbnail Url": "",
      "Fields": [{
          "Title": "Seed",
          "Value": "[{world.seed}](https://rustmaps.com/map/{world.size}_{world.seed})",
          "Inline": true,
          "Enabled": true
        },
        {
          "Title": "Size",
          "Value": "{world.size}M ({world.size!km^2}km^2)",
          "Inline": true,
          "Enabled": true
        },
        {
          "Title": "Protocol",
          "Value": "{server.protocol.network}",
          "Inline": true,
          "Enabled": true
        },
        {
          "Title": "Click & Connect",
          "Value": "steam://connect/{server.address}:{server.port}",
          "Inline": false,
          "Enabled": true
        }
      ],
      "Footer": {
        "Icon Url": "",
        "Text": "",
        "Enabled": true
      }
    }
  }],
  "Protocol messages": [{
    "Content": "@everyone",
    "Send Mode (Always, Random)": "Always",
    "Embed": {
      "Enabled": true,
      "Title": "{server.name}",
      "Description": "The server protocol has changed!",
      "Url": "",
      "Embed Color": "#de8732",
      "Image Url": "",
      "Thumbnail Url": "",
      "Fields": [{
          "Title": "Protocol",
          "Value": "{server.protocol.network}",
          "Inline": true,
          "Enabled": true
        },
        {
          "Title": "Previous Protocol",
          "Value": "{server.protocol.previous}",
          "Inline": true,
          "Enabled": true
        },
        {
          "Title": "Mandatory Client Update",
          "Value": "This update requires a mandatory client update in order to be able to play on the server",
          "Inline": false,
          "Enabled": true
        },
        {
          "Title": "Click & Connect",
          "Value": "steam://connect/{server.address}:{server.port}",
          "Inline": false,
          "Enabled": true
        }
      ],
      "Footer": {
        "Icon Url": "",
        "Text": "",
        "Enabled": true
      }
    }
  }]
}

I'm not seeing anything sticking out as to why it would cause that error. Can you try running the /dw protocol command and see if you still get that error?

You have sent a test protocol message
 
[Discord Wipe] HTTP/1.1 400 Bad Request {"message": "Cannot send an empty message", "code": 50006}

yeah I'm not sure either... somehow I got the dw wipe command to work. However, it just shows up as a picture of the map rather than any other information in my discord channel. I think you can see it here: https://ibb.co/M5gDQvf


Can you change the Debug Level to "Info" in the config? Then reload the plugin and try the command again. There will be a lot of text can you grab all of it and send it to me on discord MJSU#0814.

Ok I'll try that.

Solved with the user through discord. The server name had "\" Which is a C# reserved character and was breaking the JSON.

Locked automatically