[DocumentDB] The list and show commands throw an unhandled exception
See original GitHub issueI’m able to successfully create a DocumentDB instance via az documentdb create
, however, if I subsequently try to run the list
, list-all
or show
commands, I get the following exception:
unbound method get() must be called with DatabaseAccountsOperations instance as first argument (got DocumentDB instance instead)
Traceback (most recent call last):
File "/Users/joncart/Library/Python/2.7/lib/python/site-packages/azure/cli/main.py", line 37, in main
cmd_result = APPLICATION.execute(args)
File "/Users/joncart/Library/Python/2.7/lib/python/site-packages/azure/cli/core/application.py", line 157, in execute
result = expanded_arg.func(params)
File "/Users/joncart/Library/Python/2.7/lib/python/site-packages/azure/cli/core/commands/__init__.py", line 333, in _execute_command
result = op(client, **kwargs) if client else op(**kwargs)
TypeError: unbound method get() must be called with DatabaseAccountsOperations instance as first argument (got DocumentDB instance instead)
Is there maybe something wrong with my installation?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:15 (11 by maintainers)
Top Results From Across the Web
Common Errors - Amazon DocumentDB - AWS Documentation
This section lists the errors common to the API actions of all AWS services. ... The request processing has failed because of an...
Read more >MongoError: not master - node.js - Stack Overflow
I did some debugging and it seems like its throwing an error while executing the drop collection call. The other commands seem to...
Read more >Troubleshoot Azure Cosmos DB not found exceptions
Learn how to diagnose and fix not found exceptions. ... Container/Collection names are case-sensitive in Azure Cosmos DB.
Read more >{ useUnifiedTopology: true } leads to MongoDB connection ...
MongoDB connection error: MongoTimeoutError: Server selection timed out after 30000 ms [nodemon] ... throw er; // Unhandled 'error' event
Read more >node events.js:136 throw er; Unhandled 'error' event-mongodb
Try to use the following commands to enlarge the number of handlers that actives the watcher (listener of application changes).
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 FreeTop 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
Top GitHub Comments
@dmakwana I took a look and created a PR. I don’t have a database to test it on but that PR may help.
@johnpapa CLI works for both 2.7 and 3.5. Can you share the version of the CLI with me? (use
az --version
command)