Linuxgsm: Discord Message not working - [ FAIL ] Alert arkserver: Sending Discord alert: {"embeds": ["0"]}

Created on 2 Nov 2017  路  11Comments  路  Source: GameServerManagers/LinuxGSM

Hello,

well i m starting a server Linux with LinuxGSM and i using Discord, so i add my discord conf like u says here -- > https://github.com/GameServerManagers/LinuxGSM/wiki/Discord

i put the configuration on my config files :

nano /home/arkserver/lgsm/config-lgsm/arkserver/arkserver.cfg

# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
discordalert="on"
discordwebhook="https://discordapp.com/XXXXXXXXXXXXXXXX"

so when i lunch my server and i try a test :

i have this error :

arkserver@ubuntu:~$ ./arkserver ta
[ WARN ] Alert arkserver: More Info not enabled
[ FAIL ] Alert arkserver: Sending Discord alert: {"embeds": ["0"]}
[ WARN ] Alert arkserver: Email alerts not enabled
[ WARN ] Alert arkserver: IFTTT alerts not enabled
[ WARN ] Alert arkserver: Mailgun alerts not enabled
[ WARN ] Alert arkserver: Pushbullet alerts not enabled
[ WARN ] Alert arkserver: Pushover alerts not enabled
[ WARN ] Alert arkserver: Telegram Messages not enabled

what do u think is wrong please ?

bug

Most helpful comment

ok i found a solution :

edit this files :

nano lgsm/config-lgsm/arkserver/common.cfg

adding this line :

servername="ark-server-ubuntu"

like this :
https://gist.github.com/gamersalpha/f27370566023c21af16bf6cebfad434a

and now the that"s works :)

[ OK ] Alert arkserver: Sending Discord alert

i think the problem is discord detect an empty value and refuse to send message.

All 11 comments

Anyone have suggestion please

i activate the dev log and i see this :

````
arkserver@ubuntu:~$ ./arkserver ta
[ WARN ] Alert arkserver: More Info not enabled
[ FAIL ] Alert arkserver: Sending Discord alert: {"embeds": ["0"]}
[ WARN ] Alert arkserver: Email alerts not enabled
[ WARN ] Alert arkserver: IFTTT alerts not enabled
[ WARN ] Alert arkserver: Mailgun alerts not enabled
[ WARN ] Alert arkserver: Pushbullet alerts not enabled
[ WARN ] Alert arkserver: Pushover alerts not enabled
[ WARN ] Alert arkserver: Telegram Messages not enabled

command_test_alert.sh exiting with code: 3
arkserver@ubuntu:~$ tail -f dev-debug.log
+++++ '[' -n ALERT ']'
++++++ date '+%b %d %H:%M:%S.%3N'
+++++ echo -e 'nov. 06 20:16:46.936 arkserver: ALERT: WARN: command_test_alert.sh exiting with code: 3'
+++++ exitcode=3
+++++ fn_exit_dev_debug
+++++ '[' -f /home/arkserver/.dev-debug ']'
+++++ echo ''
+++++ echo 'command_test_alert.sh exiting with code: 3'
+++++ trap - INT
+++++ exit 3
``

So i create a shell script who send request to Discrod with linuxGSM and works, so i m looking what is wrong :

https://gist.github.com/gamersalpha/11179b34cddde5434e3713f73603b699

ok i found a solution :

edit this files :

nano lgsm/config-lgsm/arkserver/common.cfg

adding this line :

servername="ark-server-ubuntu"

like this :
https://gist.github.com/gamersalpha/f27370566023c21af16bf6cebfad434a

and now the that"s works :)

[ OK ] Alert arkserver: Sending Discord alert

i think the problem is discord detect an empty value and refuse to send message.

I think I may of resolved this issue my improving sed to remove carriage returns. This will be in the next release. If it is still an issue please raise a new issue. Thanks for reporting :D

Hello,
i make a new frech install today on, a ubuntu 18.04
and this bug is still here !!!!

@gamersalpha I haven't completed the next release yet!!!

and i still have not all good information send to discord :

image

missing the IP, is not the good serveur ip

@dgibbs64 ok sorry, but this thread is closed

@gamersalpha I haven't completed the next release yet!!!

i am also having this issue

me too

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pavelhoral picture pavelhoral  路  3Comments

dj-hyb picture dj-hyb  路  3Comments

metalowcom picture metalowcom  路  3Comments

Audrik picture Audrik  路  3Comments

Frisasky picture Frisasky  路  3Comments