mirror of
https://github.com/fspecii/ace-step-ui.git
synced 2026-04-25 14:15:49 +03:00
[GH-ISSUE #10] Fix redundant "/audio/" prefix causing 404/NS_BINDING_ABORTED and generation failures. #12
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ace-step-ui#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Konrro on GitHub (Feb 4, 2026).
Original GitHub issue: https://github.com/fspecii/ace-step-ui/issues/10
The app generates double slashes in URLs (e.g., /audio//audio/...) because getPublicUrl in local.ts adds the prefix even if the key already contains it. This causes Python to fail when locating reference tracks.
Normalize the key in storage/local.ts or ensure consistency in how paths are stored in the database.
After some debug, i find the problem (inside 'local.ts'):
Replace the function at line 17 (async upload) with this code:
It fixed the bad url when an audio file is upload as reference.
Note: I also recommend checking upload and getUrl in the same file to ensure they don't redundantly prepend the prefix, keeping the storage logic consistent.
@fspecii commented on GitHub (Feb 5, 2026):
Hi @Konrro,
Thanks for the detailed report! This was indeed a real bug — the
upload()function was returning/audio/${key}which caused double prefixes when the URL was later passed throughgetUrl()orgetPublicUrl().This has already been fixed:
upload()now returns just the rawkey(without the/audio/prefix)getPublicUrl()has a guard to prevent double-prefixingClosing as resolved. Thanks for digging into this!