core icon indicating copy to clipboard operation
core copied to clipboard

HEAD Requests Sent to Blob URLs Causing Console Errors

Open Ted-developer opened this issue 7 months ago • 1 comments

Description

When creating clips using blob URLs (format blob:http://...), the system still sends HEAD requests to these URLs. This results in error logs appearing in the browser console. Although these errors do not affect the normal functionality of the product, they pollute the console and may impact the debugging experience.

Steps to Reproduce

Create a new clip using a blob URL Open browser developer tools and check the console Observe HEAD request errors for blob URLs

Expected Behavior

The system should identify blob URLs and avoid sending HEAD requests to them, or properly handle these requests to prevent error logs from appearing.

Actual Behavior

The system sends HEAD requests to blob URLs, resulting in error logs in the browser console.

Priority

Low - Does not affect functionality, but impacts development experience

Ted-developer avatar May 20 '25 02:05 Ted-developer

DS core uses HEAD to identify the mime type without fetching the entire file. If the head request fails it will use GET and include an AbortSignal which will be triggered after the mime type is available.

My recommendation would be to use signed urls instead of blobs. We might also consider just removing the console log as it doesn't affect the functionality.

k9p5 avatar May 20 '25 13:05 k9p5