-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
Gateway Timeout({"error":{"code":"GatewayTimeout","message":"The gateway did not receive a response from 'Microsoft.App' within the specified time period."}})
Happens with any kind of az containerapp command. I also can't create a service ticket on azure.com, that just fails and times out too
Related command
az containerapp logs show
Errors
Gateway Timeout({"error":{"code":"GatewayTimeout","message":"The gateway did not receive a response from 'Microsoft.App' within the specified time period."}})
Issue script & Debug output
cli.knack.cli: Command arguments: ['containerapp', 'logs', 'show', '--name', 'pipeaid-incoming-video-process', '--resource-group', 'rg-pipeaid-video-conversion', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x1025b31a0>, <function OutputProducer.on_global_arguments at 0x102e66480>, <function CLIQuery.on_global_arguments at 0x102ea3c40>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'containerapp': ['azure.cli.command_modules.containerapp', 'azure.cli.command_modules.serviceconnector']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: containerapp 0.171 37 123
cli.azure.cli.core: serviceconnector 0.012 20 315
cli.azure.cli.core: Total (2) 0.184 57 438
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: Loaded 56 groups, 438 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : containerapp logs show
cli.azure.cli.core: Command table: containerapp logs show
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x103df20c0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/Users/johnathan/.azure/commands/2025-07-15.15-39-24.containerapp_logs_show.64561.log'.
az_command_data_logger: command args: containerapp logs show --name {} --resource-group {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x103e2f7e0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x103e65b20>, <function register_cache_arguments..add_cache_arguments at 0x103e65c60>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x103e65d00>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x102e66520>, <function CLIQuery.handle_query_parameter at 0x102ea3ce0>, <function register_ids_argument..parse_ids_arguments at 0x103e65bc0>]
cli.azure.cli.core.util: Found subscription ID 8b721ac2-3f40-4175-892a-b6ca989f049d in the URL https://management.azure.com/subscriptions/8b721ac2-3f40-4175-892a-b6ca989f049d/resourceGroups/rg-pipeaid-video-conversion/providers/Microsoft.App/containerApps/pipeaid-incoming-video-process?api-version=2024-03-01
cli.azure.cli.core.util: Retrieving token for resource https://management.core.windows.net/, subscription 8b721ac2-3f40-4175-892a-b6ca989f049d
cli.azure.cli.core.auth.persistence: build_persistence: location='/Users/johnathan/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /Users/johnathan/.azure/msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/24251fb8-be46-47e1-8282-ff9509830fdf
msal.authority: openid_config("https://login.microsoftonline.com/24251fb8-be46-47e1-8282-ff9509830fdf/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/24251fb8-be46-47e1-8282-ff9509830fdf/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/24251fb8-be46-47e1-8282-ff9509830fdf/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/24251fb8-be46-47e1-8282-ff9509830fdf/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/24251fb8-be46-47e1-8282-ff9509830fdf/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/24251fb8-be46-47e1-8282-ff9509830fdf/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/24251fb8-be46-47e1-8282-ff9509830fdf/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/24251fb8-be46-47e1-8282-ff9509830fdf/kerberos', 'tenant_region_scope': 'NA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? None
cli.azure.cli.core.auth.msal_credentials: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 001ddad1-126c-4d35-86cf-b7ac583d02c4
cli.azure.cli.core.util: Request URL: 'https://management.azure.com/subscriptions/8b721ac2-3f40-4175-892a-b6ca989f049d/resourceGroups/rg-pipeaid-video-conversion/providers/Microsoft.App/containerApps/pipeaid-incoming-video-process?api-version=2024-03-01'
cli.azure.cli.core.util: Request method: 'GET'
cli.azure.cli.core.util: Request headers:
cli.azure.cli.core.util: 'User-Agent': 'python/3.12.9 (macOS-15.1-arm64-arm-64bit) AZURECLI/2.69.0 (HOMEBREW)'
cli.azure.cli.core.util: 'Accept-Encoding': 'gzip, deflate'
cli.azure.cli.core.util: 'Accept': '/'
cli.azure.cli.core.util: 'Connection': 'keep-alive'
cli.azure.cli.core.util: 'x-ms-client-request-id': '33c3d427-e462-480c-9f0b-f6397ee702c7'
cli.azure.cli.core.util: 'CommandName': 'containerapp logs show'
cli.azure.cli.core.util: 'ParameterSetName': '--name --resource-group --debug'
cli.azure.cli.core.util: 'Authorization': 'Bearer eyJ0eXAiOiJKV...'
cli.azure.cli.core.util: Request body:
cli.azure.cli.core.util: None
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/8b721ac2-3f40-4175-892a-b6ca989f049d/resourceGroups/rg-pipeaid-video-conversion/providers/Microsoft.App/containerApps/pipeaid-incoming-video-process?api-version=2024-03-01 HTTP/1.1" 504 141
cli.azure.cli.core.util: Response status: 504
cli.azure.cli.core.util: Response headers:
cli.azure.cli.core.util: 'Cache-Control': 'no-cache'
cli.azure.cli.core.util: 'Pragma': 'no-cache'
cli.azure.cli.core.util: 'Content-Length': '141'
cli.azure.cli.core.util: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.util: 'Expires': '-1'
cli.azure.cli.core.util: 'x-ms-failure-cause': 'service'
cli.azure.cli.core.util: 'x-ms-request-id': '83bfdad6-3897-4972-a8f0-30ca86215a3a'
cli.azure.cli.core.util: 'x-ms-correlation-request-id': '83bfdad6-3897-4972-a8f0-30ca86215a3a'
cli.azure.cli.core.util: 'x-ms-routing-request-id': 'EASTUS:20250715T194025Z:83bfdad6-3897-4972-a8f0-30ca86215a3a'
cli.azure.cli.core.util: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.util: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.util: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.util: 'X-MSEdge-Ref': 'Ref A: 30D90AB80F044354BCCE87F3A97878E2 Ref B: CH1AA2020620051 Ref C: 2025-07-15T19:39:25Z'
cli.azure.cli.core.util: 'Date': 'Tue, 15 Jul 2025 19:40:25 GMT'
cli.azure.cli.core.util: Response content:
cli.azure.cli.core.util: {"error":{"code":"GatewayTimeout","message":"The gateway did not receive a response from 'Microsoft.App' within the specified time period."}}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 654, in execute
self._validation(expanded_arg)
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/knack/invocation.py", line 111, in _validation
self._validate_cmd_level(parsed_ns, cmd_validator)
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 912, in _validate_cmd_level
cmd_validator(**self._build_kwargs(cmd_validator, ns))
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/_validators.py", line 229, in validate_ssh
_set_ssh_defaults(cmd, namespace)
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/_validators.py", line 170, in _set_ssh_defaults
app = ContainerAppClient.show(cmd, namespace.resource_group_name, namespace.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/azure/cli/command_modules/containerapp/_clients.py", line 211, in show
r = send_raw_request(cmd.cli_ctx, "GET", request_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/azure/cli/core/util.py", line 1046, in send_raw_request
raise HTTPError(reason, r)
azure.cli.core.azclierror.HTTPError: Gateway Timeout({"error":{"code":"GatewayTimeout","message":"The gateway did not receive a response from 'Microsoft.App' within the specified time period."}})
cli.azure.cli.core.azclierror: Gateway Timeout({"error":{"code":"GatewayTimeout","message":"The gateway did not receive a response from 'Microsoft.App' within the specified time period."}})
az_command_data_logger: Gateway Timeout({"error":{"code":"GatewayTimeout","message":"The gateway did not receive a response from 'Microsoft.App' within the specified time period."}})
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x103df2340>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 60.681 seconds (init: 0.120, invoke: 60.561)
cli.azure.cli.core.decorators: Suppress exception:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/azure/cli/main.py", line 53, in
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/azure/cli/main.py", line 46, in
sys.exit(exit_code)
SystemExit: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/azure/cli/core/decorators.py", line 79, in _wrapped_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/lib/python3.12/site-packages/azure/cli/core/telemetry.py", line 129, in generate_payload
payload = json.dumps(self.events, separators=(',', ':'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.12.9/Frameworks/Python.framework/Versions/3.12/lib/python3.12/json/init.py", line 238, in dumps
**kw).encode(obj)
^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.12.9/Frameworks/Python.framework/Versions/3.12/lib/python3.12/json/encoder.py", line 200, in encode
chunks = self.iterencode(o, _one_shot=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.12.9/Frameworks/Python.framework/Versions/3.12/lib/python3.12/json/encoder.py", line 258, in iterencode
return _iterencode(o, 0)
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.12.9/Frameworks/Python.framework/Versions/3.12/lib/python3.12/json/encoder.py", line 180, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type HTTPError is not JSON serializable
telemetry.main: Split cli events and extra events failure: the JSON object must be str, bytes or bytearray, not NoneType
Expected behavior
Command should show the logs
Environment Summary
azure-cli 2.69.0 *
core 2.69.0 *
telemetry 1.1.0
Extensions:
account 0.2.5
Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1
Python location '/opt/homebrew/Cellar/azure-cli/2.69.0/libexec/bin/python'
Config directory '/Users/johnathan/.azure'
Extensions directory '/Users/johnathan/.azure/cliextensions'
Python (Darwin) 3.12.9 (main, Feb 4 2025, 14:38:38) [Clang 16.0.0 (clang-1600.0.26.6)]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
tap...tap...Is this thing on?