GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug] Inbox permanently stuck on "Looking in your inbox…" when a filed album has incomplete release metadata · Issue #4 · gavndev/codetta Done DescriptionDescription The Inbox dialog can become permanently stuck on "Looking in your inbox…", even though background album matching, tagging and automatic filing continue working correctly. The issue occurs when a previously filed album has an incomplete "release" object in the persisted Inbox state. I reproduced the issue, inspected the stored data and captured the exact JavaScript exception. Removing the affected completed entry through Codetta's own API immediately resolved the problem. Steps to reproduce
Actual behavior
Expected behavior
Confirmed root cause
One automatically filed album had this persisted state: Album: Doggfather 30: The Long Game Other entries contained complete release metadata: Album: The Break In Album: Average Human Being
In "src/codetta/web/static/js/musicbrainz.js", "mbMeta()" accesses: c.labels[0] However, the persisted release object above contains only "id". This results in the following exception: Uncaught (in promise) TypeError: at mbMeta (musicbrainz.js:131:110) The exception occurs during rendering, after the API request, outside the existing request-error handler. Consequently, the initial loading placeholder is never replaced.
In "src/codetta/web/routes/inbox.py", the following code path exists: release=g.release if not release or ( When the selected release differs from the previously stored release, this expression can persist an object containing only the release ID. This appears to be a possible source of the incomplete metadata seen in "inbox.json". I have not independently confirmed which specific action originally created the ID-only record. Verified workaround I used the existing Inbox API to dismiss only the affected completed entry: (async () => { const broken = data.groups.filter(g => for (const g of broken) { } The affected entry returned HTTP 200. After refreshing the page, the Inbox worked normally again. The album awaiting review was accessible, and no music files or metadata needed to be modified. Suggested fixes Frontend Handle missing fields defensively: c.labels?.[0] Alternatively, normalize incomplete release objects before rendering. Also consider protecting "renderInbox()" with appropriate error handling so one malformed entry cannot leave the entire dialog stuck on its initial loading state. Backend Avoid persisting ID-only release objects where the UI expects complete release summaries. When changing a release ID, either retrieve the corresponding summary or explicitly support partial metadata objects throughout the application. Regression tests Add tests covering:
Environment
Additional information The issue was reproduced across multiple sessions. Two albums were successfully filed while another remained in "review", demonstrating that the processing backend continued operating independently of the broken Inbox dialog. The JavaScript stack trace and the persisted Inbox data confirm the failure mechanism. Screenshots of the stuck Inbox, the persisted release objects and the DevTools exception are available. Created with help of AI Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |