Comments (4)
Can you provide a stack trace? I can neither reproduce this nor see how line 50 is related to this exception
from aiode.
ERROR 2024-04-12 14:52:28,204 [command-execution-CommandContext@13bacb2b-f7cb-455c-a401-802cd64fa3cb] net.robinfriedli.aiode.exceptions.ExceptionUtils Exception while handling command !help play on guild The Cord of Bosses
net.robinfriedli.aiode.exceptions.CommandRuntimeException: java.lang.IllegalArgumentException: URL must be a valid http(s) or attachment url.
at net.robinfriedli.aiode.command.interceptor.interceptors.CommandExecutionInterceptor.performChained(CommandExecutionInterceptor.java:152)
at net.robinfriedli.aiode.command.interceptor.AbstractChainableCommandInterceptor.intercept(AbstractChainableCommandInterceptor.java:26)
at net.robinfriedli.aiode.command.interceptor.AbstractChainableCommandInterceptor.intercept(AbstractChainableCommandInterceptor.java:36)
at net.robinfriedli.aiode.command.interceptor.AbstractChainableCommandInterceptor.intercept(AbstractChainableCommandInterceptor.java:36)
at net.robinfriedli.aiode.command.interceptor.AbstractChainableCommandInterceptor.intercept(AbstractChainableCommandInterceptor.java:36)
at net.robinfriedli.aiode.command.interceptor.AbstractChainableCommandInterceptor.intercept(AbstractChainableCommandInterceptor.java:36)
at net.robinfriedli.aiode.command.interceptor.AbstractChainableCommandInterceptor.intercept(AbstractChainableCommandInterceptor.java:36)
at net.robinfriedli.aiode.command.interceptor.AbstractChainableCommandInterceptor.intercept(AbstractChainableCommandInterceptor.java:36)
at net.robinfriedli.aiode.command.interceptor.AbstractChainableCommandInterceptor.intercept(AbstractChainableCommandInterceptor.java:36)
at net.robinfriedli.aiode.command.interceptor.CommandInterceptorChain.intercept(CommandInterceptorChain.java:67)
at net.robinfriedli.aiode.command.CommandManager.doRunCommand(CommandManager.java:137)
at net.robinfriedli.aiode.concurrent.CommandExecutionTask.lambda$new$0(CommandExecutionTask.java:24)
at net.robinfriedli.aiode.concurrent.QueuedTask.run(QueuedTask.java:38)
at net.robinfriedli.aiode.concurrent.CommandExecutionTask.run(CommandExecutionTask.java:34)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalArgumentException: URL must be a valid http(s) or attachment url.
at net.dv8tion.jda.internal.utils.Checks.check(Checks.java:62)
at net.dv8tion.jda.api.EmbedBuilder.urlCheck(EmbedBuilder.java:908)
at net.dv8tion.jda.api.EmbedBuilder.setFooter(EmbedBuilder.java:799)
at net.robinfriedli.aiode.command.widget.AbstractPaginationWidget.prepareEmbedBuilderForPage(AbstractPaginationWidget.java:114)
at net.robinfriedli.aiode.command.widget.AbstractPaginationWidget.prepareInitialMessage(AbstractPaginationWidget.java:44)
at net.robinfriedli.aiode.command.widget.AbstractWidget.initialise(AbstractWidget.java:109)
at net.robinfriedli.aiode.command.commands.general.HelpCommand.lambda$showCommandHelp$1(HelpCommand.java:125)
at java.base/java.util.Optional.ifPresentOrElse(Optional.java:196)
at net.robinfriedli.aiode.command.commands.general.HelpCommand.showCommandHelp(HelpCommand.java:50)
at net.robinfriedli.aiode.command.commands.general.HelpCommand.doRun(HelpCommand.java:45)
at net.robinfriedli.aiode.command.interceptor.interceptors.CommandExecutionInterceptor.performChained(CommandExecutionInterceptor.java:61)
... 16 common frames omitted
I referenced line 50 because the help command seems to work until it tries to showCommandHelp() on line 50
from aiode.
You need to looker higher up in the stack trace, line 50 is where it calls the lambda containing the entire help command logic. It gets up to here: at net.robinfriedli.aiode.command.commands.general.HelpCommand.lambda$showCommandHelp$1(HelpCommand.java:125)
where it then fails at net.robinfriedli.aiode.command.widget.AbstractPaginationWidget.prepareEmbedBuilderForPage(AbstractPaginationWidget.java:114)
. This is because the logoUrl is invalid because your configuration for the property aiode.server.base_uri
is wrong. Normally this is initially set to http://localhost:8000
, which isn't reachable publicly of course (so there won't be a footer logo) but is a valid URL that doesn't cause an error.
from aiode.
You were correct I used the wrong syntax for my aiode.server.base_uri
!
from aiode.
Related Issues (20)
- Make A Command To Make The Bot Not Leave When There Is No Music Actually Playing
- enable "message content" for "custom prefixes "? HOT 2
- Aiode Remove from Playlist Error HOT 6
- [BUG] jda-nas dependency failure HOT 3
- cargo-make build failed HOT 1
- Private Bot is Offline HOT 4
- How to implement an auto-queueing script? HOT 2
- Changing Discord theme resets bot volume back to 100% HOT 2
- Please add language settings.
- 24/7
- Execution Error: Error creating bean with name 'aiode' HOT 1
- WebSocket permissions issue? HOT 2
- Persistent Lagging Issues with Self-Hosted Music Bot Instance HOT 1
- Album title tracks play the first track of the album instead (Spotify) HOT 3
- New Patch Issues HOT 3
- auto queue HOT 2
- Aiode will not play MP3 files hosted by Catbox.
- See created aiode playlist ? HOT 1
- Doesn't work anymore HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiode.