Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Songs won't play #53

Open
nickian opened this issue Nov 23, 2021 · 13 comments
Open

Songs won't play #53

nickian opened this issue Nov 23, 2021 · 13 comments

Comments

@nickian
Copy link

nickian commented Nov 23, 2021

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
Copy link

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

@nickian
Copy link
Author

nickian commented Nov 26, 2021

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
Copy link
Author

nickian commented Nov 26, 2021

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
Copy link
Member

phanan commented Dec 5, 2021

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
Copy link

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
Copy link
Member

phanan commented Dec 6, 2021

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
Copy link
Author

nickian commented Dec 6, 2021

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
Copy link
Author

nickian commented Dec 6, 2021

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
Copy link
Member

phanan commented Dec 6, 2021 via email

@nickian
Copy link
Author

nickian commented Dec 6, 2021

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
Copy link
Member

phanan commented Dec 6, 2021 via email

@vesubian
Copy link

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
Copy link
Member

phanan commented Jan 17, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants