[cache]`cache show` fails with stack trace if resource type is not specified
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
az cache show -n {} -g {} fails… az cache show -n {} -g {} -t {} succeeds…
Command Name
az cache show
Errors:
join() argument must be str or bytes, not 'NoneType'
Traceback (most recent call last):
python3.7/site-packages/knack/cli.py, ln 206, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 523, in execute
raise ex
cli/core/commands/__init__.py, ln 581, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 574, in _run_job
six.reraise(*sys.exc_info())
...
cli/command_modules/configure/custom.py, ln 194, in show_cache_contents
item_path = os.path.join(directory, resource_group_name, resource_type, '{}.json'.format(item_name))
../lib/python3.7/posixpath.py, ln 94, in join
genericpath._check_arg_types('join', a, *p)
../lib/python3.7/genericpath.py, ln 149, in _check_arg_types
(funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'
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 cache show -n {} -g {}
Expected Behavior
Environment Summary
Darwin-18.0.0-x86_64-i386-64bit
Python 3.7.3
Shell: bash
azure-cli 2.0.62 *
Extensions:
dev-spaces 1.0.0
alias 0.5.2
interactive 0.4.2
Additional Context
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Gradle Build Failure Could not open proj class cache for build ...
I believe this issue may have happened for me as a result of adding a new dependency to my build.gradle file through IntelliJ...
Read more >Error handling - Apollo GraphQL Docs
A client sent the hash of a query string to execute via automatic persisted queries, but the query was not in the APQ...
Read more >Navigating to Certain Pages Triggers Stack Trace | Confluence
Navigating to certain pages/spaces triggers an error page with a stack trace: The following appears in the atlassian-confluence.log :.
Read more >Best Practices for exceptions - .NET - Microsoft Learn
Learn best practices for exceptions, such as using try/catch/finally, handling common conditions without exceptions, and using predefined .
Read more >Configuration cache - Gradle User Manual
By default, Gradle will fail the build if any configuration cache problems are encountered. ... Try: > Run with --stacktrace option to get...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It is in the PR.
@tjprescott. Nice to hear it was fixed. I would pull in dev into my branch.
Below is the error I got:
I believe model_cls is
None
because get_models only works on versioned models.