Skip to content

Restore (and possibly other) operations are not handling errors correctly #41855

@heaths

Description

@heaths

A customer reported an issue through CSS about restore operations not always failing correctly. No error HTTP status was reported, but a status monitor still returned an error. According to guidelines, this is expected.

The crux of the issue is here:

if (_value != null && EndTime.HasValue && Error?.Code != null)
{
_requestFailedException = new RequestFailedException($"{Error.Message}\nInnerError: {Error.InnerError}\nCode: {Error.Code}");
throw _requestFailedException;
}

We likely did not populate Error.Code or maybe not even Error, so we didn't create and/or throw a proper RequestFailedException.

Metadata

Metadata

Assignees

Labels

ClientThis issue is related to a non-management packageKeyVault

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions