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

Media files don't work on staging server #39

Closed
MarcKaufmann opened this issue Mar 12, 2021 · 4 comments
Closed

Media files don't work on staging server #39

MarcKaufmann opened this issue Mar 12, 2021 · 4 comments
Assignees
Labels
async bug Something isn't working

Comments

@MarcKaufmann
Copy link
Owner

MarcKaufmann commented Mar 12, 2021

For some reason, the test-audio.mp3 doesn't load or exist or is not of the right type on the staging server:

Media resource https://staging.totalinsightmanagement.com/resource/6c5a0c28d6b45c19dfa9f61a70b47d0c/test-audio.mp3 could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)
Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.

When I follow the link to the resource directly, I get a message that "No video with supported format and MIME type found."

My local dist created via raco koyo dist does have the test-audio.mp3 file in it, and it runs fine. Nginx is not configured to deal with mp3's in some special way, at least not in the /etc/nginx/sites-available config. In Chromium-browser (Ubuntu), the hidden button is instead not hidden, and the music also doesn't play. It does not throw any errors that I can see.

I found this, which suggests that the content-type is not properly set. The decoding issue, although then why does it work in development, and even when I use the raco koyo dist version? Something something docker/https?

@MarcKaufmann MarcKaufmann added bug Something isn't working async labels Mar 12, 2021
@MarcKaufmann MarcKaufmann changed the title Audio file doesn't work on staging server Media files don't work on staging server Mar 12, 2021
@MarcKaufmann
Copy link
Owner Author

MarcKaufmann commented Mar 12, 2021

The matrix images on the next pages also 'cannot be displayed because it contains errors'. Is it possible that this is due to me having moved to git-lfs for mp3 and png files? But I don't see how that would affect the files bundled with the distribution when running raco koyo dist.

@Bogdanp
Copy link
Collaborator

Bogdanp commented Mar 12, 2021

By default, the GH checkout action doesn't use LFS so that's probably the culprit. You can try modifying the "checkout" step in the CI workflow to turn on LFS support.

@MarcKaufmann
Copy link
Owner Author

Yes, that seems to do the trick, going to do some more testing. Thanks for the quick response -- my mental model of the ci pipeline has big gaps.

@MarcKaufmann
Copy link
Owner Author

That was it, fixed by 5f8dd20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
async bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants