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

Fixing connection error #1912

Merged
merged 16 commits into from
Aug 8, 2023
Merged

Conversation

abdelaziz-mahdy
Copy link
Contributor

@abdelaziz-mahdy abdelaziz-mahdy commented Jul 31, 2023

New Pull Request Checklist

  • I have read the Documentation
  • I have searched for a similar pull request in the project and found none
  • I have updated this branch with the latest main branch to avoid conflicts (via merge from master or rebase)
  • I have added the required tests to prove the fix/feature I'm adding
  • I have updated the documentation (if necessary)
  • I have run the tests without failures
  • I have updated the CHANGELOG.md in the corresponding package

Additional context and info (if any)

fixing #1911

@abdelaziz-mahdy abdelaziz-mahdy requested a review from a team as a code owner July 31, 2023 19:57
Copy link
Member

@kuhnroyal kuhnroyal left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution, I left a couple comments.

@kuhnroyal
Copy link
Member

@cfug/devs In generell I am not sure if this should be considered a breaking change. I know I have code that relies on the current behaviour.

@kuhnroyal kuhnroyal linked an issue Jul 31, 2023 that may be closed by this pull request
@kuhnroyal kuhnroyal added the p: dio Targeting `dio` package label Jul 31, 2023
Copy link
Member

@kuhnroyal kuhnroyal left a comment

Choose a reason for hiding this comment

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

LGTM, just need to figure out if this will break peoples code.

@kuhnroyal kuhnroyal self-requested a review July 31, 2023 20:56
@abdelaziz-mahdy
Copy link
Contributor Author

LGTM, just need to figure out if this will break peoples code.

thank you for the fast and awesome review.

Copy link
Member

@AlexV525 AlexV525 left a comment

Choose a reason for hiding this comment

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

RSLGTM

@abdelaziz-mahdy
Copy link
Contributor Author

Is something required from me other than the change log text review?

@AlexV525
Copy link
Member

AlexV525 commented Aug 2, 2023

@kuhnroyal 's review is still requesting changes. PTAL

@abdelaziz-mahdy
Copy link
Contributor Author

abdelaziz-mahdy commented Aug 2, 2023

added the stacktrace

but this fails in the test

                (e) => e.stackTrace
                     .toString()
                    .contains('test/stacktrace_test.dart'),

since stacktrace is

#0      IOHttpClientAdapter._fetch (package:dio/src/adapters/io_adapter.dart:131:32)
<asynchronous suspension>
#1      CancelableCompleter.complete.<anonymous closure> (package:async/src/cancelable_operation.dart:425:16)
<asynchronous suspension>

so i commented it, should i remove it? or leave it so it gets tested when a better logic for stacktrace exists.

@kuhnroyal
Copy link
Member

@cfug/devs In generell I am not sure if this should be considered a breaking change. I know I have code that relies on the current behaviour.

Any feedback on this?

@AlexV525
Copy link
Member

AlexV525 commented Aug 2, 2023

@cfug/devs In generell I am not sure if this should be considered a breaking change. I know I have code that relies on the current behaviour.

Any feedback on this?

I would not consider this as a BC.

@abdelaziz-mahdy
Copy link
Contributor Author

any idea when can this get merged?

Copy link
Member

@kuhnroyal kuhnroyal left a comment

Choose a reason for hiding this comment

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

We are not passing the original stacktrace for now, same as before this PR.
Further discussion for this in #1914

@kuhnroyal kuhnroyal added this pull request to the merge queue Aug 8, 2023
Merged via the queue into cfug:main with commit 0854519 Aug 8, 2023
@kuhnroyal
Copy link
Member

Thanks @zezo357 for your contribution and patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: dio Targeting `dio` package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: SocketException type unknown instead of connectionError
4 participants