VIDEOJS: ERROR: (CODE:2 MEDIA_ERR_NETWORK) A network error caused the media download to fail part-way

I’m using video.js as video player, and I got this error while I playing a video.
I looked up online how to fix this error, but I found that this error is caused by the server not responding correctly to byte-range requests.
So I’ll post this issue on Render community, not “Issue” of video.js github repository.

Hi there,

Can you provide further details about your issue here? How are you making the byte-range requests to your service? What are the response codes from your service?


Render Support, UTC+10 :australia:

Sorry for late response.
I’m currently working with rails 7.0, AWS S3 as a storage service, and I use ActiveStorage to upload to S3.
I don’t understand so much about S3 and ActiveStorage, so I looked up online how to implement File Uploads to S3 using ActiveStorage, then I didn’t think and understand about byte-range request. (AWS S3 may supports byte-range requests…)