-
Notifications
You must be signed in to change notification settings - Fork 160
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
.NET MFD throw exception in EnsureCompleted when run test sync API with debug version SDK #4702
Comments
In |
Possible solution: |
@chunyu3, could you please share a repro case for this issue? |
Per offline discussion, it is by-design that we are doing sync-over-async in the sync/netstandard2.0 case, and cannot be avoided when using the BCL MultipartFormDataContent type. Given this, the recommendation is:
-<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
+<TargetFrameworks>$(RequiredTargetFrameworks);net6.0</TargetFrameworks>
The Core team has work in progress to add the Please note that if we do only item 2 without also doing item 1, clients will do sync-over-async even on net6.0 platforms and this is highly undesirable. Please only do the two together. This relates to the guidance that we should not include the emitted MultipartFormDataRequestContent.cs in clients that do not use it. Also, because we will be doing sync-over-async in these cases, there is a chance that these tests may fail nondeterministically. If they become flaky, we should find a way to [Ignore] them, but only for the MPFD/netstandard2.0/sync cases -- it would be preferable to continue testing the net6.0+/sync cases in case we identify further issues that need to be investigated and corrected. @jsquire FYI |
When build SDK in Debug version, and run sync API of MFD operation, exception throw
Task is not completed
inEnsureCompleted
The text was updated successfully, but these errors were encountered: