sbpp / discord-forward

Listens for forward SBPP_OnBanPlayer and SBPP_OnReportPlayer and sends it to Discord's webhook endpoint(s)
https://sbpp.github.io
GNU General Public License v3.0
6 stars 4 forks source link

Sending requests not working #2

Closed zAfLu closed 6 years ago

zAfLu commented 6 years ago

Hello,

we tested the discord webhooks stuff and notice an issue with sending requests. Everytime a ban is triggered we get the following error message (Message will not be transfered).

L 04/13/2018 - 01:44:23: [SM] Exception reported: Invalid time format or buffer too small L 04/13/2018 - 01:44:23: [SM] Blaming: sbpp_discord.smx L 04/13/2018 - 01:44:23: [SM] Call stack trace: L 04/13/2018 - 01:44:23: [SM] [0] FormatTime L 04/13/2018 - 01:44:23: [SM] [1] Line 92, E:\GameServer\csgoSubSurf\csgo\addons\sourcemod\scripting\sbpp_discord.sp::SendReport L 04/13/2018 - 01:44:23: [SM] [2] Line 57, E:\GameServer\csgoSubSurf\csgo\addons\sourcemod\scripting\sbpp_discord.sp::SBPP_OnBanPlayer L 04/13/2018 - 01:44:23: [SM] [4] Call_Finish L 04/13/2018 - 01:44:23: [SM] [5] Line 2485, .\sbpp_main.sp::CreateBan L 04/13/2018 - 01:44:23: [SM] [6] Line 471, .\sbpp_main.sp::CommandBan L 04/13/2018 - 01:44:24: [SM] Exception reported: Invalid time format or buffer too small L 04/13/2018 - 01:44:24: [SM] Blaming: sbpp_discord.smx L 04/13/2018 - 01:44:24: [SM] Call stack trace: L 04/13/2018 - 01:44:24: [SM] [0] FormatTime L 04/13/2018 - 01:44:24: [SM] [1] Line 92, E:\GameServer\csgoSubSurf\csgo\addons\sourcemod\scripting\sbpp_discord.sp::SendReport L 04/13/2018 - 01:44:24: [SM] [2] Line 57, E:\GameServer\csgoSubSurf\csgo\addons\sourcemod\scripting\sbpp_discord.sp::SBPP_OnBanPlayer L 04/13/2018 - 01:44:24: [SM] [4] Call_Finish L 04/13/2018 - 01:44:24: [SM] [5] Line 2485, .\sbpp_main.sp::CreateBan L 04/13/2018 - 01:44:24: [SM] [6] Line 2601, .\sbpp_main.sp::PrepareBan L 04/13/2018 - 01:44:24: [SM] [7] Line 809, .\sbpp_main.sp::ReasonSelected

Already tested:

We always get the same result. Any ideas?

rumblefrog commented 6 years ago

This seems to be a thing on Windows only with Microsoft not supporting the format. To solve this, comment out line 92 and 102 and recompile.

rumblefrog commented 6 years ago

Removed in https://github.com/sbpp/discord-forward/commit/b231706d07f43800f8edc61be422d6f7224c5e22 and drafted it for v1.0.4

This decoration data is causing more problem than convenience.

zAfLu commented 6 years ago

works fine, thanks m8 :)