Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3k forks source link

Mysterious HTTPSConnectionPool error deploying (too many 500 error responses) when comments are added before first curly brace #13518

Open StephenWeatherford opened 4 years ago

StephenWeatherford commented 4 years ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az group deployment create

Errors:

Error occurred in request., RetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions/e5ef2b13-6478-4887-ad57-1aa6b9475040/resourcegroups/deleteme/providers/Microsoft.Resources/deployments/comment-bug?api-version=2019-07-01 (Caused by ResponseError('too many 500 error responses'))

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Use this deployment template:

// COMMENTS HERE CAUSE MYSTERIOUS ERROR
{
    // COMMENTS HERE ARE OKAY
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "resources": [
    ]
}

Expected Behavior

Environment Summary

macOS-10.14.6-x86_64-i386-64bit
Python 3.8.1
Shell: bash

azure-cli 2.0.80 *

Additional Context

yonzhan commented 4 years ago

add to S170

zhoxing-ms commented 4 years ago

In fact, this error is reported by Service, we need the service team to have a look~

ghost commented 4 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.

chhavikishore commented 4 years ago

Yes, since 2 days I was facing the same issue. I thought might be azure-cli is not installed properly on my system, i reinstalled it several times. But, yes commented ARM code before the { $schema: was giving the HTTPSConnectionPool error. Now its working when i removed that commented code. Thanks @StephenWeatherford . Please do look into this. This causes the ARM template az deployment to have error as : RetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded

jainr commented 3 years ago

Just now had the same issue for a template that I took from the template repo.