Skip to content

Fix Sentry WORDPRESS-ANDROID-3F8W: skip Sentry for empty_fetch_params#22889

Closed
nbradbury wants to merge 1 commit into
trunkfrom
fix/sentry-3f8w-app-password-empty-fetch-params
Closed

Fix Sentry WORDPRESS-ANDROID-3F8W: skip Sentry for empty_fetch_params#22889
nbradbury wants to merge 1 commit into
trunkfrom
fix/sentry-3f8w-app-password-empty-fetch-params

Conversation

@nbradbury
Copy link
Copy Markdown
Contributor

Summary

Fixes WORDPRESS-ANDROID-3F8WApplication password login failed: empty_fetch_params (~463 users / ~720 events).

Sibling of the issues silenced in #22846. When the deep-link callback arrives with one of username / password / siteUrl / apiRootUrl missing — most commonly apiRootUrl not present in the URI — fetchSites emits an empty_fetch_params error to the UI and tracks the failure via trackStoringFailed(..., "empty_fetch_params"). It was also firing a crash report because emitError defaulted to reportToSentry = true. #22846 added the reportToSentry flag and silenced the empty_credentials / site_not_found / no_rows_affected validation outcomes, but missed this earlier check.

What changed

fetchSites now passes reportToSentry = false for the empty_fetch_params branch. The UI surfacing and analytics tracking are unchanged — only the Sentry noise stops.

Test plan

  • Walk through application password login on a self-hosted site (happy path) to confirm no behavior regression.
  • Sanity-check Sentry dashboards 1 week after the next release ships to confirm event-rate drop on 3F8W.

🤖 Generated with Claude Code

Sibling of the issues silenced in #22846. When the deep-link callback
arrives with one of username/password/siteUrl/apiRootUrl missing,
fetchSites emits an "empty_fetch_params" error to the UI and tracks
the failure via trackStoringFailed — but also fired a crash report
because emitError defaulted reportToSentry=true. ~463 users affected.

Pass reportToSentry=false so the UI surfacing and analytics tracking
remain, but the Sentry noise stops.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dangermattic
Copy link
Copy Markdown
Collaborator

1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@nbradbury
Copy link
Copy Markdown
Contributor Author

Closing, I don't think this fix is necessary.

@nbradbury nbradbury closed this May 22, 2026
@wpmobilebot
Copy link
Copy Markdown
Contributor

App Icon📲 You can test the changes from this Pull Request in Jetpack Android by scanning the QR code below to install the corresponding build.

App NameJetpack Android
Build TypeDebug
Versionpr22889-9471c8d
Build Number1488
Application IDcom.jetpack.android.prealpha
Commit9471c8d
Installation URL0g35k6javgv60
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Copy Markdown
Contributor

App Icon📲 You can test the changes from this Pull Request in WordPress Android by scanning the QR code below to install the corresponding build.

App NameWordPress Android
Build TypeDebug
Versionpr22889-9471c8d
Build Number1488
Application IDorg.wordpress.android.prealpha
Commit9471c8d
Installation URL57a12dbqt7gv8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants