Azure / Azure/azure-cli-extensions

Error Info from HTTPOperationError not returning without --debug flag

Open
#2,793 3 comments 0 reactions 0 assignees View on GitHub
Kubernetes Configuration Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)

### Extension name (the extension in question)

k8sconfiguration

### Description of issue (in as much detail as possible)

- Error messages that are returned from our RP endpoint are not being propagated back to the user without using the --debug flag. Error that's returned is:
```
UnknownError: Operator returned an invalid status code 'Bad Request'
```

If you have access to the subscription, you can reproduce this error by performing the following commands
```
az account set --subscription 37524548-5887-4df0-a359-38a687fdb3bc
az k8sconfiguration create -n https-auth-config -g joinnis-test --cluster-name joinnis-arc-eus --cluster-type connectedClusters --scope cluster --operator-namespace config5 --operator-instance-name config5
```
-----

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.