Skip to content

Remove request URL from error strings - #68

Closed
mosherBT wants to merge 2 commits into
masterfrom
sdk-error-url-redaction
Closed

mosherBT wants to merge 2 commits into
masterfrom
sdk-error-url-redaction

Conversation

@mosherBT

@mosherBT mosherBT commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Why

Error strings echoed the request URL back to the host app: interpolating an NSError prints its userInfo, which carries NSErrorFailingURLStringKey. On targeting that URL carries the hashed email and advertising ID, so anything logging the error logs identifiers.

What Changed

  • Source: session errors report domain, code and localizedDescription instead of the whole NSError
  • Source: success is an inline 2xx range check rather than an HTTPStatusCode lookup, which routed any 2xx the enum omits into the error path

How to Test

  • bundle exec fastlane tests passes

Notes

  • Requires release

@mosherBT mosherBT self-assigned this Sep 22, 2026
@mosherBT
mosherBT marked this pull request as ready for review September 22, 2026 17:59
@mosherBT
mosherBT requested review from a team as code owners September 22, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant