-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[core-lro] "The long-running operation has failed" is an unclear message for customers #25374
Comments
The design guidelines say there should be an |
Sounds great |
@deyaaeldeen Agreed. In our recent experience, when the provisioningState is One thing needs more attention here is we will meet the LRO failure error both in two stages, one is in polling process the other is in final get. Could we improve both to get these errors? Case1 - Payload throws during polling
Case 2: Payload during final get
|
Hi @MaryGao , @gargankit-microsoft, I tried the addition of options parameter to the client start/stop requests and I'm able to see the error information in the raw logging. Attaching the output snapshot tested on "Stop Central Server Instance" test and the provisioning failed
We are getting proper error message in the field |
|
@gargankit-microsoft Offline confirmed with Suhani, I think this is the similar issue so we will track in this issue also. |
### Packages impacted by this PR @azure/core-lro ### Issues associated with this PR #25374. Note that CI failures are unrelated. ### Describe the problem that is addressed by this PR Error messages when polling fails don't contain informaion on why the failure happened. ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? N/A ### Are there test cases added in this PR? _(If not, why?)_ Yes ### Provide a list of related PRs _(if any)_ N/A ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [x] Added a changelog (if necessary)
I merged in a fix and I am planning on making a release in May. Do we need to release sooner? |
Thanks for the fix, I think we can release it in May. |
@kazrael2119 Could you help bump the version of core-lro in codegen? |
Please note this fix has not been released yet. |
I'll keep track of this |
Close it as fixed. |
when sdk operation call was failing we were getting this info in the error response "The long-running operation has failed" and this message is not useful. Instead of it if we could get exact reason in the error message it will be very helpful.
"The long-running operation has failed" is an unclear message when we get this error. We can't know where the error comes from so that we don't know how to fix it.
Could we improve the experience for it?
The text was updated successfully, but these errors were encountered: