Azure / Azure/autorest.powershell

Http timeouts are not caught by the generated code

Open
#885 0 comments 0 reactions 0 assignees View on GitHub
bug P1
Dominant language
C#
Stars
123
Forks
99
PR merge metrics
No merged PRs in 30d

Description

All exceptions that occur during the execution of a cmdlet should be written to the error stream. In the generated code, only these exceptions are currently caught in the try catch:
- PipelineStoppedException
- AggregateException
- UndeclaredResponseException
- RestException

### Proposal
Ensure all exceptions should be caught in `ProcessRecordAsync` method.
![image](https://user-images.githubusercontent.com/7061532/146076875-d55b0c59-2766-4541-97d0-ab7dc0ff990b.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.