Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#6635·uppy

Show safe feedback when provider connection fails without a structured Companion error

Author: kvzCreated Sep 29, 2026Updated Sep 29, 2026

Why

An unavailable Companion or a failed grant request can leave users with no visible feedback. The structured Companion error-code handling works; this is the separate connection path where no structured error response exists. Mikael requested a concrete issue in Slack: https://transloadit.slack.com/archives/C0FMW9PSB/p1790611072816069.

Reproduction

Verified against published @uppy/[email protected] and @uppy/[email protected]:

  1. Use Storage with autoConnect: false and an in-memory token store.
  2. Configure getGrant: async () => { throw new Error('private-diagnostic-sentinel') }.
  3. Attempt to connect through the provider view.
  4. Connection fails, but uppy.getState().info remains empty. Likewise with a rejected network fetch or Companion returning a plain-text 400/503 rather than a structured user-facing error.

The current handleError only calls uppy.info for UserFacingApiError; other connection failures are logged but never announced. A direct runtime check of the npm handler produced zero notices for a synthetic fetch failure; Content's narrowly patched handler produced one translated warning.

Consumer regression tests, including the real installed provider path: https://github.com/transloadit/content/blob/ea576660ae6a745b214c70d7e1ef16dfebd3cfe3/src/app/%5Blocale%5D/c/%5Bworkspace%5D/(authenticated)/(with-console-content)/file-library/_lib/providerErrors.test.ts

Expected behavior / acceptance criteria

  • Connection failure shows exactly one translated, sanitized warning, including network, non-JSON HTTP and rejected getGrant() failures.
  • Do not display raw exception messages, endpoints, credentials or upstream bodies.
  • Keep structured Companion error translations intact.
  • Expected request cancellation and unauthenticated session probes remain silent here.
  • Preserve the existing OAuth cancellation message; a non-cancel OAuth connection failure must not also claim the user aborted.
  • Do not relabel local file-selection/addFiles failures as connection failures: the shared helper has non-network callers.
  • Retry works after the grant/backend recovers.

Content currently carries this narrowly scoped patch; we would like to remove it once a published Core release includes equivalent behavior. This is separate from Dashboard's duplicate Informer (#6629) and does not require the file-manager redesign (#6628). Related broader API consistency issue: #5436.

Source: transloadit/uppy

View original on GitHubView discussion on GitHub