Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using --protocols parameter in apim api update I encounter a list object has no attribute 'split' #17330

Closed
limelobo opened this issue Mar 16, 2021 · 3 comments
Labels
API Management az apim Error Handling question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.

Comments

@limelobo
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az apim api update

Errors:

'list' object has no attribute 'split'
Traceback (most recent call last):
python3.8/site-packages/knack/cli.py, ln 233, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 660, in execute
    raise ex
cli/core/commands/__init__.py, ln 723, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
...
cli/core/commands/arm.py, ln 527, in handler
    instance = custom_function(instance=instance, **custom_func_args)
cli/command_modules/apim/custom.py, ln 235, in update_apim_api
    instance.protocols = protocols.split(',')
AttributeError: 'list' object has no attribute 'split'

To Reproduce:

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

  • Put any pre-requisite steps here...
  • az apim api update --service-name {} --resource-group {} --api-id {} --display-name {} --path {} --protocols {} --service-url {} --subscription-key-header-name {} --subscription-key-query-param-name {} --subscription-required {}

Expected Behavior

Environment Summary

macOS-10.15.7-x86_64-i386-64bit
Python 3.8.8
Installer: HOMEBREW

azure-cli 2.20.0

Extensions:
logic 0.1.2
azure-devops 0.18.0
application-insights 0.1.9

Additional Context

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 16, 2021
@yungezz yungezz added API Management az apim Error Handling Service Attention This issue is responsible by Azure service team. labels Mar 17, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Mar 17, 2021
@ghost
Copy link

ghost commented Mar 17, 2021

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

Issue Details

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az apim api update

Errors:

'list' object has no attribute 'split'
Traceback (most recent call last):
python3.8/site-packages/knack/cli.py, ln 233, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 660, in execute
    raise ex
cli/core/commands/__init__.py, ln 723, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
...
cli/core/commands/arm.py, ln 527, in handler
    instance = custom_function(instance=instance, **custom_func_args)
cli/command_modules/apim/custom.py, ln 235, in update_apim_api
    instance.protocols = protocols.split(',')
AttributeError: 'list' object has no attribute 'split'

To Reproduce:

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

  • Put any pre-requisite steps here...
  • az apim api update --service-name {} --resource-group {} --api-id {} --display-name {} --path {} --protocols {} --service-url {} --subscription-key-header-name {} --subscription-key-query-param-name {} --subscription-required {}

Expected Behavior

Environment Summary

macOS-10.15.7-x86_64-i386-64bit
Python 3.8.8
Installer: HOMEBREW

azure-cli 2.20.0

Extensions:
logic 0.1.2
azure-devops 0.18.0
application-insights 0.1.9

Additional Context

Author: limelobo
Assignees: -
Labels:

API Management, Error Handling, Service Attention, needs-triage, question

Milestone: -

@yungezz
Copy link
Member

yungezz commented Mar 17, 2021

route to appropriate team

@yingru97
Copy link
Contributor

yingru97 commented Jun 28, 2021

Issue resolved with PR #18605

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Management az apim Error Handling question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants