Skip to content

storage blob upload failed in cli interactive mode #580

@softveda

Description

@softveda

I was following the tutorial at https://docs.microsoft.com/en-us/azure/functions/tutorial-static-website-serverless-api-with-database?tutorial-step=2

I am using az cli interactive mode within windows subsystem for Linux.
The following command failed
storage blob upload -c \$web --account-name <storage account name> -f settings.js -n settings.js

The error message was
progress_patch() got an unexpected keyword argument 'det' Traceback (most recent call last): File "/home/pratik/.azure/cliextensions/interactive/azext_interactive/azclishell/app.py", line 659, in cli_execute result = invocation.execute(args) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in execute raise ex File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 386, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 377, in _run_job cmd_copy.exception_handler(ex) File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 237, in new_handler handler(ex) File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 180, in handler raise ex File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 356, in _run_job result = cmd_copy(params) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 171, in __call__ return self.handler(*args, **kwargs) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 448, in default_command_handler return op(**command_args) File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/blob.py", line 325, in upload_blob return type_func[blob_type]() File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/operations/blob.py", line 318, in upload_block_blob return client.create_blob_from_path(**create_blob_args) File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/blob/blockblobservice.py", line 463, in create_blob_from_path timeout=timeout) File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2018_03_28/blob/blockblobservice.py", line 567, in create_blob_from_stream progress_callback(0, count) File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_validators.py", line 702, in _update_progress hook = cmd.cli_ctx.get_progress_controller(det=True) TypeError: progress_patch() got an unexpected keyword argument 'det'

It worked when I used the command from outside interactive mode


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Storagecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.extension/interactivefeature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions