jaxcksn / nanoleafMusic

Sync your Nanoleaf lights with Spotify!
BSD 3-Clause "New" or "Revised" License
28 stars 1 forks source link

Crash after spotify connect #17

Closed mezotv closed 2 years ago

mezotv commented 3 years ago

After i connect spotify i get an error message(that closes instand) and the software crashes making it unusabke

jaxcksn commented 3 years ago

Would you mind posting a screenshot of the error message? I'm in college and don't have access to my light panels so it's unlikely that I'll be able to fix it anytime soon.

mezotv commented 3 years ago

You would mind posting a screenshot of the error message? I'm in college and don't have access to my light panels so it's unlikely that I'll be able to fix it anytime soon.

I would do that but the message closes instant

alexoconnell commented 3 years ago

I just tried this app and get the same issue, connect to spotify and then it closes. No error that I see.

inthenick commented 3 years ago

I have the same issue on MacOS Big Sur 11.6.

jaxcksn commented 3 years ago

Like I said, I'm in college at the moment, so I probably won't get the chance to fix this until around December. I apologize that it's broken right now, from the looks of it, it seems like it's an issue with the spotify authentication.

mezotv commented 2 years ago

Any updates on that ?

LadeShootH commented 2 years ago

i have the same problem and i found the log file, so maybe this will help

these are the last few lines

01:25:21 [effect-start] INFO nanoleafMusic.EffectManager - Effect timer was scheduled 01:25:21 [effect-start] INFO nanoleafMusic.EffectManager - Spotify Poll timer was scheduled 01:25:21 [Thread-10] WARN nanoleafMusic.MusicEffect - Unrecoverable exception was thrown. Shutting down program. 01:25:21 [Thread-10] ERROR nanoleafMusic.Main - An Exception was Thrown io.github.rowak.nanoleafapi.StatusCodeException$BadRequestException: 400 Bad Request. at io.github.rowak.nanoleafapi.Aurora.checkStatusCode(Aurora.java:1699) at io.github.rowak.nanoleafapi.Aurora.access$300(Aurora.java:29) at io.github.rowak.nanoleafapi.Aurora$Effects.writeEffect(Aurora.java:994) at io.github.rowak.nanoleafapi.Aurora$Effects.displayEffect(Aurora.java:785) at dev.jaxcksn.nanoleafMusic.effects.PulseBeatEffect.lambda$run$0(PulseBeatEffect.java:157) at java.base/java.lang.Thread.run(Unknown Source)

jaxcksn commented 2 years ago

Thank you for the information, from the looks of it, the problem is with the Aurora API, I'll have to see if they updated the endpoints. I can't give an estimate on when this will be fixed, but I will work on it as soon as I get the chance. I'm planning on remaking this program in a different language anyways from scratch, so I might do that instead of trying to fix these issues.

Ry-DS commented 2 years ago

Solved in #21 using the new Nanoleaf API. Haven't provided a build but if you build it yourself, works great with the new Nanoleaf devices.