question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[DocumentDB] The list and show commands throw an unhandled exception

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
derekbekoecommented, Mar 20, 2017

@dmakwana I took a look and created a PR. I don’t have a database to test it on but that PR may help.

0reactions
troydaicommented, Jun 12, 2017

@johnpapa CLI works for both 2.7 and 3.5. Can you share the version of the CLI with me? (use az --version command)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found