Blumlaut / EasyAdmin

Admin Menu for FiveM and RedM
https://easyadmin.readthedocs.io/
GNU Affero General Public License v3.0
169 stars 157 forks source link

Screenshot Function Failure #828

Closed kplutus closed 7 months ago

kplutus commented 8 months ago

WARNING: IF YOU DO NOT FILL OUT OR REMOVE THE TEMPLATE YOUR ISSUE WILL GET LOCKED!

Describe the issue

Screenshot function not working, due to the script calling for a nil value, unsure how to resolve. The script outputs the discord log of "Screenshot of [user] game taken" but then never outputs the screenshot itself.

Attempted Solutions

Attempting to reissue the discord webhook url, (on standby until server restart) verified image file type is correct, and attempting to resolve reference issue in the logs below to no avail.

Screenshots/Logs

EA Console Log [ script:EasyAdmin] SCRIPT ERROR: @EasyAdmin/server/admin_server.lua:555: attempt to concatenate a nil value (global 'res') [ script:EasyAdmin] > handler (@EasyAdmin/server/admin_server.lua:555)

Line of code referenced above. image

Server Infos (please complete the following information):

Additional context

It worked before someone with a .lua executor found a way to reply to the script, or abused the webhook to reply to the discord channel. and has not functioned since. Image showing modder's abuse of the bot: image

Blumlaut commented 8 months ago

according to the error no image URL was found in the response of the webhook, likely the Webhook URL is invalid or the data sent is invalid, you can add a print(result) after the if result == "ERROR" line to see what the result text was.