SHARE
TWEET

Untitled

a guest Jul 16th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'id': 'server1',
  2.     'Web Site': 0,
  3.     'Cloud Service': 0,
  4.     'Virtual Machine': 0,
  5.     'message': 'Hello World from Server 1!'
  6.     },
  7.     {
  8.     'id': 'server2',
  9.     'Web Site': 0,
  10.     'Cloud Service': 0,
  11.     'Virtual Machine': 0,
  12.     'message': 'Hello World from Server 1!'
  13.     }]
  14.      
  15. nayana@nayana-HP-Notebook:~/Azure$ python3 Upload to azure cosmo.py
  16. Traceback (most recent call last):
  17.   File "Upload to azure cosmo.py", line 52, in <module>
  18.     'message': 'Hello World from Server 2!'
  19.   File "/usr/local/lib/python3.5/dist-packages/azure/cosmos/cosmos_client.py", line 1023, in CreateItem
  20.     collection_id, document, path = self._GetContainerIdWithPathForItem(database_or_Container_link, document, options)
  21.   File "/usr/local/lib/python3.5/dist-packages/azure/cosmos/cosmos_client.py", line 1080, in _GetContainerIdWithPathForItem
  22.     CosmosClient.__ValidateResource(document)
  23.   File "/usr/local/lib/python3.5/dist-packages/azure/cosmos/cosmos_client.py", line 2854, in __ValidateResource
  24.     id = resource.get('id')
  25. AttributeError: 'list' object has no attribute 'get'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top