koel / player

Koel Player, the official mobile app for Koel.
https://koel.dev
412 stars 123 forks source link

Songs won't play #53

Open nickian opened 2 years ago

nickian commented 2 years ago

The app looks amazing and everything seems to work as expected, until I tap on a song to play it. Nothing happens. I don't see any errors come up in my NGINX log as I'm using the app. How can I go about debugging this?

pandalanax commented 2 years ago

did you check storage/logs/laravel.log for anything?

nickian commented 2 years ago

Nothing happens there. I tried tail -f storage/logs/laravel.log and tried interacting with the app in my desktop browser and iOS. Nothing comes up in the log.

nickian commented 2 years ago

Everything works fine on desktop, but I do see this error in the console. I don't know if it's related:

Uncaught (in promise) Error: Request failed with status code 404
    exports https://mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    onreadystatechange https://mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
phanan commented 2 years ago

This really doesn't have enough information for me to even start to debug. Please give more info e.g., What version are you using? OS? Does your server have HTTPS? What do your files look like?

AngelPone commented 2 years ago

It happens to me, too. I also can not play music sometimes, even I saw 206 status code in apache log about the request.

phanan commented 2 years ago

Not saying that this is the reason to our specific case here, but typically files need to be bueffered first. Currently Koel has the limitation of not displaying the footer Now Playing panel right away (due to the library we're using), but it has to wait for some buffering to be done first. This limitation is at the top of my list.

nickian commented 2 years ago

I'm running v5.18 on Ubuntu 20.04 with PHP-FPM 7.4 and NGINX.

I'm not sure if these errors are related. In the browser, music plays, but I see these errors in the console:

XHR GET https://music.mydomain.com/api/6a647fecf76b5d0772a3c0ef417a01f8/info [HTTP/2 404 Not Found 44ms]
Uncaught (in promise) Error: Request failed with status code 404
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    onreadystatechange https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    promise callback*jXzy/c.prototype.request https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    request https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    get https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    get https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    fetch https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    fetch https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    fetchSongInfo https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    fetchSongInfo https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    n https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    <anonymous> https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    SONG_STARTED https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    $emit https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    emit https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    restart https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    k https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    k https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
app.js:2:222668
Error: Promised response from onMessage listener went out of scope 5 background.js:8:59712

Nothing shows up when I tail -f to the webserver log or the laravel log while interacting with the app in the browser or on my iPhone.

nickian commented 2 years ago

Does Koel use a standard Laravel NGINX virtual host, or do you have to do something custom? Why aren't there any virtual host examples listed in the Documentation?

phanan commented 2 years ago

There’s one right in the repo.

On Mon 6. Dec 2021 at 19:41 Nick @.***> wrote:

Does Koel use a standard Laravel NGINX virtual host, or do you have to do something custom? Why aren't there any virtual host examples listed in the Documentation?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/koel/player/issues/53#issuecomment-987053947, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5O3UXEI6K7JC5I2NDIEHLUPT7XHANCNFSM5IS3X77A .

nickian commented 2 years ago

Ah, I see it now. Thanks. Mine was slightly different, so I updated it, but nothing changed with the phone app behavior.

Could this be related to the newest iOS? Have you tested with 15.1.1?

phanan commented 2 years ago

I'm using it with my iPhone (15.1.1). I don't think it's an app problem tbh.

Am Mo., 6. Dez. 2021 um 21:32 Uhr schrieb Nick @.***>:

Ah, I see it now. Thanks. Mine was slightly different, so I updated it, but nothing changed with the phone app behavior.

Could this be related to the newest iOS? Have you tested with 15.1.1?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/koel/player/issues/53#issuecomment-987184013, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5O3USGERNPWQSYL2KAWR3UPUMUDANCNFSM5IS3X77A .

vesubian commented 2 years ago

I am also unable to play anything from the iOS app, but it works fine through browser and on desktop. Is TLS required on the server for it to work?

phanan commented 2 years ago

Yes, please enable SSL.

On Tue 18. Jan 2022 at 00:39 vesubian @.***> wrote:

I am also unable to play anything from the iOS app, but it works fine through browser and on desktop. Is TLS required on the server for it to work?

— Reply to this email directly, view it on GitHub https://github.com/koel/player/issues/53#issuecomment-1014956398, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5O3UTXWPV2STFCDOFCLCLUWSSCZANCNFSM5IS3X77A . You are receiving this because you commented.Message ID: @.***>