Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-3452] Network Exception Issue Fix #580

Merged
merged 2 commits into from
Jun 24, 2022
Merged

Conversation

poovamraj
Copy link
Contributor

@poovamraj poovamraj commented Jun 22, 2022

Changes

isNetworkError in AuthenticationException hasn't been working since we have not properly thrown NetworkErrorException from any of the ErrorAdapters (Both in AuthenticationAPIClient and UserAPIClient)

To fix this issue without breaking the current behaviour, instead of starting to throw NetworkErrorException we have handled the boolean flag to accept SocketTimeoutException and UnknownHostException

We have not used the broader IOException since it can be found in JSON parsing or other functionalities as well

References

Closes #558

Testing

  • This change adds unit test coverage

  • This change adds integration test coverage

  • This change has been tested on the latest version of the platform/language or why not

@poovamraj poovamraj requested a review from a team as a code owner June 22, 2022 16:04
@poovamraj poovamraj added this to the v2-Next milestone Jun 22, 2022
adamjmcgrath
adamjmcgrath previously approved these changes Jun 23, 2022
@poovamraj poovamraj merged commit 0ea1b85 into vNext Jun 24, 2022
@frederikprijck frederikprijck mentioned this pull request Jul 5, 2022
@poovamraj poovamraj deleted the network-exception-issue-fix branch July 18, 2023 10:12
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.

None yet

2 participants