Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Closes #8492: Gracefully handle network failures while obtaining token server url #8498

Merged
merged 3 commits into from
Sep 25, 2020

Conversation

grigoryk
Copy link
Contributor


Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry or does not need one
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

After merge

  • Milestone: Make sure issues closed by this pull request are added to the milestone of the version currently in development.
  • Breaking Changes: If this is a breaking change, please push a draft PR on Reference Browser to address the breaking issues.

Copy link
Contributor

@csadilek csadilek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Curious to learn more / see below. Also, did you mean to commit the metrics files too?

@@ -184,8 +184,10 @@ class FirefoxAccount internal constructor(
}
}

override fun getTokenServerEndpointURL(): String {
return inner.getTokenServerEndpointURL()
override suspend fun getTokenServerEndpointURL() = withContext(scope.coroutineContext) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious how this didn't fail before? Was it wrapped in an handleFxaExceptions and we lost that? Or are we calling it more often now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still investigating this. It's neither of those, I'll let you know once I sort this out. Maybe it was failing and we didn't notice, somehow..?

@grigoryk
Copy link
Contributor Author

grigoryk commented Sep 25, 2020

RE metrics - yup, these doc files keep getting out of date, somehow, I commit these diffs when I see them locally. Quite annoying.

@grigoryk grigoryk added 🛬 needs landing PRs that are ready to land and removed 🕵️‍♀️ needs review PRs that need to be reviewed labels Sep 25, 2020
@mergify mergify bot merged commit 01306f8 into mozilla-mobile:master Sep 25, 2020
@grigoryk grigoryk deleted the issue8492TokenserverNetwork branch September 25, 2020 19:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🛬 needs landing PRs that are ready to land
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants