Skip to content

[SDTEST-3753] Added a proper log message for the bad API key (401/403 responses from the backend).#238

Merged
ypopovych merged 2 commits into
mainfrom
sdtest-3753-show-log-for-bad-api-key
May 6, 2026
Merged

[SDTEST-3753] Added a proper log message for the bad API key (401/403 responses from the backend).#238
ypopovych merged 2 commits into
mainfrom
sdtest-3753-show-log-for-bad-api-key

Conversation

@ypopovych

Copy link
Copy Markdown
Contributor

What and why?

If user will set a bad API key (malformed/revoked) requests will fail with 401/403 error. We need to show an error with explanation to user so they could fix it.

How?

Added handlers for 401 and 403 response codes with log.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference

@ypopovych
ypopovych requested review from a team as code owners May 6, 2026 13:41
@ypopovych
ypopovych requested a review from anmarchenko May 6, 2026 13:42
Comment thread Sources/EventsExporter/Upload/HTTPClient.swift Outdated
@ypopovych
ypopovych merged commit ce83ac8 into main May 6, 2026
4 checks passed
@ypopovych
ypopovych deleted the sdtest-3753-show-log-for-bad-api-key branch May 6, 2026 14:25
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.

3 participants