#2503·Chat2DB

bug(export): log polling silently stops on request failure (no .catch)

Author: Aias00Created Aug 4, 2026Updated Sep 9, 2026

Description

Log/index.tsx.getTaskDetails calls importExportServices.getTaskDetails(...).then(...) with no .catch. The recursive poll (setTimeout(() => getTaskDetails(...)) inside .then) only continues when the request resolves; on a single poll failure (network blip, 500), the Promise rejects, the next setTimeout is never scheduled, polling silently stops, and the progress UI freezes on the last known state with no error feedback. The rejection is also unhandled.

Location

chat2db-community-client/src/blocks/ImportAndExport/components/Log/index.tsx:53-79.

Impact

Import/export progress monitoring silently freezes on a network error; user can't tell if the task completed or failed.

Suggested fix

Add .catch that surfaces the error (e.g. staticMessage.error) so the user sees the failure instead of a frozen progress bar.

Related existing

None.