I received this error while doing az keyvault secret set and there was a space in the name of the keyvault I was passing and almost after wasting half a day found that silly mistake. Once I cleared the space, there was no issue with proxy etc