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

fix: catch network error & add the current timeout setting in the TimeoutErrorMetricsEvent #39

Conversation

duyhungtnn
Copy link
Collaborator

@duyhungtnn duyhungtnn commented Aug 31, 2023

Should fix #35 & #16

Changes

  • Map NSURLDomainError to BKTError.networkError
  • Move logic to map BKTError to EventData to an BKTError extension
  • Update test to cover the bug fix
  • add the current timeout setting in the TimeoutErrorMetricsEvent

@duyhungtnn duyhungtnn force-pushed the fix/network-error-being-reported-as-internal-sdk-error branch 5 times, most recently from c95c2f1 to e67f301 Compare August 31, 2023 16:05
@duyhungtnn
Copy link
Collaborator Author

Verified on a real device
Screenshot 2023-08-31 at 22 59 13

@duyhungtnn duyhungtnn marked this pull request as ready for review August 31, 2023 16:10
@duyhungtnn
Copy link
Collaborator Author

@cre8ivejp its ready for review, please help me to take a look

@duyhungtnn duyhungtnn force-pushed the fix/network-error-being-reported-as-internal-sdk-error branch 2 times, most recently from b2cacf6 to a5b893e Compare September 1, 2023 06:25
@duyhungtnn duyhungtnn changed the title fix: catch network error fix: catch network error & add the current timeout setting in the TimeoutErrorMetricsEvent Sep 1, 2023
@duyhungtnn duyhungtnn force-pushed the fix/network-error-being-reported-as-internal-sdk-error branch 3 times, most recently from 0bdc960 to 1da9f99 Compare September 1, 2023 09:22
@duyhungtnn
Copy link
Collaborator Author

@cre8ivejp it's ready for review again. I added the current timeout setting in the TimeoutErrorMetricsEvent

@duyhungtnn duyhungtnn force-pushed the fix/network-error-being-reported-as-internal-sdk-error branch from 1da9f99 to ed35c4c Compare September 1, 2023 15:31
@duyhungtnn duyhungtnn force-pushed the fix/network-error-being-reported-as-internal-sdk-error branch from ed35c4c to f927f10 Compare September 1, 2023 15:34
Copy link
Member

@cre8ivejp cre8ivejp left a comment

Choose a reason for hiding this comment

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

Thank you!

@cre8ivejp cre8ivejp merged commit 01d6119 into bucketeer-io:main Sep 4, 2023
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.

Bug: when the fetchEvaluations fail, it was reported as InternalSdkError, but the log showed a network error ?
2 participants