Bug with Discord webhooks on latest beta [NoClassDefFoundError]

Support for unRAID and docker container users
Post Reply
Romint
Posts: 5
Joined: 15 Jan 2025, 17:54

Bug with Discord webhooks on latest beta [NoClassDefFoundError]

Post by Romint »

It's me again! Coming in to report bug with the latest build (r10484) where the Discord webhooks (as part of AMC script) are broken, see attached log:

Console Output: Select all

ubuntu@da493fa56af3:/home/ubuntu/test$ filebot -script fn:amc Wicked\ 2024.mkv --output /home/ubuntu/test2/ --action symlink --conflict skip -non-strict --def movieDB=TheMovieDB seriesDB=TheTVDB animeDB=TheTVDB --def movieFormat="Movies/{ ~plex.id % \" - \$vf\" }" seriesFormat="TV Shows/{ ~plex.id % \" - \$vf\" }" animeFormat="TV Shows/{ ~plex.id % \" - \$vf\" }" --def discord=https://discord.com/api/webhooks/***/***
Run script [fn:amc] at [Thu Jan 16 15:18:21 EST 2025]
Parameter: movieDB = TheMovieDB
Parameter: seriesDB = TheTVDB
Parameter: animeDB = TheTVDB
Parameter: movieFormat = Movies/{ ~plex.id % " - $vf" }
Parameter: seriesFormat = TV Shows/{ ~plex.id % " - $vf" }
Parameter: animeFormat = TV Shows/{ ~plex.id % " - $vf" }
Parameter: discord = *****
Argument[0]: /home/ubuntu/test/Wicked 2024.mkv
Invalid media file: [Wicked 2024.mkv | 209715200]
Input: /home/ubuntu/test/Wicked 2024.mkv
Group files by movie or series
Group: {Movie=Wicked (2024)} => [Wicked 2024.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/home/ubuntu/test/Wicked 2024.mkv]
Ignore invalid target file name generated by erroneous format expression: /home/ubuntu/test2/Movies/.mkv
[SYMLINK] from [/home/ubuntu/test/Wicked 2024.mkv] to [/home/ubuntu/test2/Movies/Wicked 2024.mkv]
Processed 1 file
Calling Discord webhook
java.lang.NoClassDefFoundError: DiscordClient$_closure1
java.lang.NoClassDefFoundError: DiscordClient$_closure1
	at DiscordClient.<init>(__script_b21fd63d834b4268efac9ed9784c3426)
	at Script.Discord(Script:166)
	at Script.doCall(Script:678)
	at Script.doCall(Script)
	at net.filebot.cli.ScriptShellBaseClass.tryLogCatch(Unknown Source)
	at Script.run(Script:676)
	at net.filebot.GroovyEngine.eval(Unknown Source)
	at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
	at net.filebot.Main.main(Unknown Source)
Caused by: net.filebot.GroovyEngine$InconsistentCompilerCacheException: Failed to load DiscordClient$_closure1 from cache: script_classes_0


	at net.filebot.GroovyEngine$CompiledScriptClassLoader.findClass(Unknown Source)
	... 11 more
Caused by: java.lang.ClassNotFoundException: DiscordClient$_closure1
	... 12 more

Error (o_O)
(P.S, I removed the webhook id and secret for security)

And here's the system information:

Console Output: Select all

ubuntu@da493fa56af3:/home/ubuntu/test$ filebot -script fn:sysinfo
FileBot 5.1.6 (r10484)
JNA Native: 7.0.0
MediaInfo: 24.06
Tools: fpcalc/1.5.1 7z/24.08 unrar/7.01 mkvpropedit/86.0 AtomicParsley/8
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2024-10-16 (r986)
Groovy: 4.0.21
JRE: OpenJDK Runtime Environment 21.0.5
JVM: OpenJDK 64-Bit Server VM
System Property: net.filebot.symlink=relative
CPU/MEM: 8 Core / 2.6 GB Max Memory / 44 MB Used Memory
OS: Linux (aarch64)
HW: Linux da493fa56af3 6.8.0-47-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 22:03:50 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
CPU/MEM: MemTotal: 10 GB / MemFree: 222 MB / MemAvailable: 4.2 GB
STORAGE: overlay [/] @ 27 GB | virtiofs [/data] @ 147 GB | virtiofs [/downloads] @ 651 GB | virtiofs [/media] @ 651 GB
UID/GID: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu)
DATA: /data/filebot
Package: DOCKER
License: FileBot License PX67385743 (Valid-Until: 2074-12-02)
Done ヾ(@⌒ー⌒@)ノ
Thank you for your hard work <3
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Bug with Discord webhooks on latest beta [NoClassDefFoundError]

Post by rednoah »

You may need to run filebot -clear-cache once. Does that do the trick?



EDIT:

I was able to reproduce the issue. FileBot r10487 should resolve the issue.
:idea: Please read the FAQ and How to Request Help.
Romint
Posts: 5
Joined: 15 Jan 2025, 17:54

Re: Bug with Discord webhooks on latest beta [NoClassDefFoundError]

Post by Romint »

rednoah wrote: 17 Jan 2025, 04:54 You may need to run filebot -clear-cache once. Does that do the trick?



EDIT:

I was able to reproduce the issue. FileBot r10487 should resolve the issue.
Glad I could be of help! And thank you so much, updating to r10487 fixed it for me!
User avatar
rednoah
The Source
Posts: 23922
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Bug with Discord webhooks on latest beta [NoClassDefFoundError]

Post by rednoah »

Cheers! Thanks for testing the latest beta and reporting issues! :)



:!: On an unrelated note, I noticed an unrelated error in the log above:

Console Output: Select all

Ignore invalid target file name generated by erroneous format expression: /home/ubuntu/test2/Movies/.mkv

Format: Select all

TV Shows/{ ~plex.id % " - $vf" }

:arrow: You'll want to adjust your format like so, as to account for the possibility of {vf} being undefined and erroring out:

Format: Select all

TV Shows/{ ~plex.id % { " - $vf" } }
** see The Unwind-on-Undefined Behaviour for details
:idea: Please read the FAQ and How to Request Help.
Romint
Posts: 5
Joined: 15 Jan 2025, 17:54

Re: Bug with Discord webhooks on latest beta [NoClassDefFoundError]

Post by Romint »

rednoah wrote: 18 Jan 2025, 05:16 Cheers! Thanks for testing the latest beta and reporting issues! :)
Not at all! :D Happy to help make the best file renamer even better!
rednoah wrote: 18 Jan 2025, 05:16 :!: On an unrelated note, I noticed an unrelated error in the log above:

Console Output: Select all

Ignore invalid target file name generated by erroneous format expression: /home/ubuntu/test2/Movies/.mkv

Format: Select all

TV Shows/{ ~plex.id % " - $vf" }

:arrow: You'll want to adjust your format like so, as to account for the possibility of {vf} being undefined and erroring out:

Format: Select all

TV Shows/{ ~plex.id % { " - $vf" } }
** see The Unwind-on-Undefined Behaviour for details
Oh that makes a lot of sense, I was wondering about that! Thank you so much, updating my command right now!
Post Reply