Giter VIP home page Giter VIP logo

Comments (51)

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Not quite yet, it's planned soon, however that issue isn't actually your fault (probably, at least).

Basically, Spotify is complaining about the authentication token it's been passed. Make sure that you're providing a correct client ID + secret key, and try restarting. I had a similar error and just restarting fixed it. My error handling isn't great so far, although that's being worked on.

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

Hmm pretty sure it's correct but could it be that i just have my files lying in the wrong folders? or that the config isn't put together correctly because the client id and key should be correct
The search works fine too but i don't know if that actually uses them

(I basically just threw all the files in different folders untill it worked xD and looked in the kt file to figure out what to put in the config because it wasn't in the default one the client id and stuff)

Also wow fast reply thanks

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Yeah, sorry about the lack of documentation for everything, I wasn't really expecting anyone to try running their own server but here we are. I'll be sure to do what I can to put something together.

As for your config file and setup, would you mind copying your config into something like Pastebin/Hastebin, obviously copying out your secret key/anything else that's confidential, and I'll have a look? Similar thing with your folder layout.

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

Well i mean i am always up for a challenge xD Running something without documentation is a good puzzle lol
Basically i just like looking through code how something works and running it on my own server

Anyway here is my config:
https://ghostbin.com/paste/g9mx6

And i put my files on github so you can see what a mess i made.. (be prepared lol)
https://github.com/EvaisaGiac/EternalJukebox

I don't know if you have time maybe but could you help me with the file structure?

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Everything actually looks to be alright (unless I'm missing something relatively obvious). I brought this up before, but have you tried restarting? It's possible that the Spotify token has somehow gotten invalidated somewhere, and I don't pick up on it. Always worth a shot.

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

Yeah i have, i also tried running on both windows and linux, i can try generating a new spotify key maybe

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Hrm, that's really weird. Try that, see what happens? I'm not too sure, sorry

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

This is all that comes up on windows now and it gets stuck on loading track
Do you know of a way i can check if it actually gets the valid token? then again i don't know if this particular error has to do with that

Jun 03, 2017 4:45:22 PM io.vertx.ext.web.impl.RoutingContextImplBase SEVERE: Unexpected exception in route java.lang.IllegalStateException: context.bodyAsString must not be null at org.abimon.eternalJukebox.EternalJukeboxKt.shrink(EternalJukebox.kt:544) at org.abimon.eternalJukebox.EternalJukeboxKt$main$21$1.invoke(EternalJukebox.kt:313) at org.abimon.eternalJukebox.EternalJukeboxKt$main$21$1.invoke(EternalJukebox.kt) at org.abimon.eternalJukebox.EternalJukeboxKt$sam$Handler$29eb28fa.handle(EternalJukebox.kt) at io.vertx.ext.web.impl.BlockingHandlerDecorator.lambda$handle$0(BlockingHandlerDecorator.java:48) at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$1(ContextImpl.java:271) at io.vertx.core.impl.TaskQueue.lambda$new$0(TaskQueue.java:60) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Don't know, but I do know why that error is happening at least. If you add a "uploads" key to your config file and set it to true, that error at least should go away. Might fix the other one too?

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

Yeah it fixed that error thanks, now the spotify one only remains which just confuses me at this point because i also regenerated the key so it really can't be that

https://ghostbin.com/paste/nks8y

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

I don't miss anything else in the config?

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

You certainly shouldn't be, that's really bizarre.

If you can wait a day or so, I'll push something that should help out in that regard? Until then, I'm not sure what else can be done

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

Alright, thanks anyway

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

Okay i am still messing around with it trying to get something to work and after rebuilding it on windows it doesn't give that error anymore, however it still gets stuck on loading track but the only errors i get are in the chrome console and not in the terminal
Might still be because of the same cause just for some reason it doesnt come up in the console?
http://imgur.com/a/ekpfV

I'm sorry i should probably stop worrying about it for now

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Could you try downloading a prebuilt jar from here? Run that with your config file and the other files and see what you get.

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

Hmm can you tell me what files i put with it and stuff where? i kind of want to figure out this mess of folders

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Your setup should look just like this repo has the files:

  • Your Directory
    • jukebox_index.html
    • jukebox_go.html
    • ...
    • config.json
    • EternalJukebox.jar
    • files
      • jremix.js
      • ...

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

How am i supposed to run it? I didn't have that jar in my previous setup at all, if i try to run it from a bat file or console i get this error

Exception in thread "main" java.lang.IllegalArgumentException: Path must start with / at io.vertx.ext.web.impl.RouteImpl.checkPath(RouteImpl.java:402) at io.vertx.ext.web.impl.RouteImpl.<init>(RouteImpl.java:67) at io.vertx.ext.web.impl.RouterImpl.route(RouterImpl.java:89) at io.vertx.ext.web.impl.RouterImpl.get(RouterImpl.java:114) at org.abimon.eternalJukebox.API$setup$20.accept(API.kt:661) at org.abimon.eternalJukebox.API$setup$20.accept(API.kt:40) at java.util.HashMap.forEach(Unknown Source) at org.abimon.eternalJukebox.API.setup(API.kt:661) at org.abimon.eternalJukebox.EternalJukeboxKt.main(EternalJukebox.kt:182)

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

The original bat doesn't run it at all, might be doing it wrong though

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

What bat file are you using? To run it you'd want to execute java -jar EternalJukebox.jar in a console in the home directory.

As for that error, mistake on my part, try downloading the update here

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

yeah i did exactly that lol
thanks i'll see

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

And no luck, even with the update?

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

no i didn't try yet sorry, give me a minute

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Alright, take your time, it's cool!

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

http://imgur.com/a/ZBSXx

It runs now but basically the same problem, first track i tried i got the same as last time (no error in the console)
And second one i think was also the same but gave a different result and also no console error

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Right, sorry the other thing you'll need to do is update your files (like jukebox_go.html, jukebox_index.html) to the most recent ones, since the endpoints moved. Sorry

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

I got the files off the git just now though? not using old ones

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

That's really weird, if you got the most recent ones you shouldn't be getting those 404s, that's really weird.

Could you open your local jukebox_go.html and search for "api/id"? If it's the old file it should pop up, but the new one won't have it

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

can't find anything

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

The google console error gets a little different with every different songs aswell it seems.. ehh
http://imgur.com/a/GjpvW

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Could you send the errors through? One of the things I tried to do was to differentiate between errors for debugging

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

i edited my last message ^ there are no errors at all in the cmd console only in chrome

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

Atleast i am guessing this is supposed to popup in the console because it is all that pops up
type=jukebox&id=05KfyCEE6otdlT1pp2VIjP type=jukebox&id=1lgN0A2Vki2FTON5PYq42m

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

It doesnt load favourites anymore either

GET http://localhost:11037/api/popular_jukebox?count=12 404 (Not Found)

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

i'm sorry i feel like i am breaking everything aahh
Full favourites error tree:
http://imgur.com/a/Y2Q01

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

That console output is unintended but not unusual, I do need to take that out.

Do you have youtube-dl installed? If not, that would explain the 404 on /api/songs

That's quite possibly the jukebox_go file being cached? It's the old endpoint again

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

let me remove cache

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

That fixed favourites yes sorry about that!

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

Where do i get youtube-dl from?

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

https://github.com/rg3/youtube-dl/blob/master/README.md#installation

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

I installed it now but still get the same error, some extra stuff does pop up in the console though
type=jukebox&id=05KfyCEE6otdlT1pp2VIjP [Default Song For ID] Non 200 code for song for 05KfyCEE6otdlT1pp2VIjP; iteration 0 [Default Song For ID] Non 200 code for song for 05KfyCEE6otdlT1pp2VIjP; iteration 1 [Default Song For ID] Non 200 code for song for 05KfyCEE6otdlT1pp2VIjP; iteration 2

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

http://imgur.com/a/Gkxgw
I'm sorry for giving you extra work

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Non 200 is something, and it looks like I wasn't smart enough to put more debugging info there.
Considering the song ID is valid, it sounds like Spotify may be erroring again; if you request a different song does the same thing happen? In particular, does it get to the point of loading the song endpoint?

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

Some songs get no console output and nothing in the chrome console either at all and get stuck on loading tracks.
Some have the loading tracks text disappear completely and give that last thing in the console plus the error in the chrome console or only a error in the chrome console and nothing in the normal one
And two songs i have tried completely crashed it and the website just went down

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

It probably all has the same cause but the effects are slightly different per song it seems which is weird

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

I can give you a link to it if you want to see for yourself
Also one beetles song in particular made it semi crash and now gives me this cool error in the search page
http://imgur.com/a/9hfLo

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

What two songs completely crashed it? That shouldn't happen so I'm curious about that. And that's really odd that it's different per song

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

Do you have skype or discord? might be a little easier

from eternaljukebox.

UnderMybrella avatar UnderMybrella commented on June 3, 2024

Yep, if you wanted to jump in the Eternal Jukebox Discord there's a link here, or if you just wanted to add me I'm UnderMybrella#4076

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

you blocked friend requests ^

from eternaljukebox.

EvaisaDev avatar EvaisaDev commented on June 3, 2024

i joined the discord

from eternaljukebox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.