Skip to content

fix(stems): show the real reason when a stems archive download fails - #14675

Open
noisyloop wants to merge 1 commit into
AudiusProject:mainfrom
noisyloop:fix/stems-archive-error-message
Open

noisyloop wants to merge 1 commit into
AudiusProject:mainfrom
noisyloop:fix/stems-archive-error-message

Conversation

@noisyloop

Copy link
Copy Markdown

The archiver already returns failedReason, but the web modal and the mobile drawer discarded it and always showed "Something went wrong. Please check your connection and try again." That was wrong for most failures: a job that failed server-side, a job that timed out while possibly still running, and a failed start request are all unrelated to the user's network, and retrying the connection cannot fix them.

Add getStemsArchiveErrorMessage to @audius/common and use it in both clients:

  • job failed with a reason: show the reason (whitespace collapsed, capped)
  • job failed without one: generic copy that does not assert a cause
  • polling timed out: say it may still be zipping, not that it failed
  • request to start or poll the job failed: retryable, not blamed on the network

On mobile, a failure saving the finished zip to the device keeps connection and storage wording, since that one can really be the device or network.

Fixes #14537

The archiver already returns failedReason, but the web modal and the mobile
drawer discarded it and always showed "Something went wrong. Please check
your connection and try again." That was wrong for most failures: a job that
failed server-side, a job that timed out while possibly still running, and a
failed start request are all unrelated to the user's network, and retrying
the connection cannot fix them.

Add getStemsArchiveErrorMessage to @audius/common and use it in both
clients:
- job failed with a reason: show the reason (whitespace collapsed, capped)
- job failed without one: generic copy that does not assert a cause
- polling timed out: say it may still be zipping, not that it failed
- request to start or poll the job failed: retryable, not blamed on the
  network

On mobile, a failure saving the finished zip to the device keeps connection
and storage wording, since that one can really be the device or network.

Fixes AudiusProject#14537

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xbmefij38Wdgfj7PgGjS8K
@changeset-bot

changeset-bot Bot commented Oct 18, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 22d390a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stems archive: failedReason is plumbed to the client then replaced with a hardcoded 'check your connection' error

2 participants