Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'id': 'server1',
- 'Web Site': 0,
- 'Cloud Service': 0,
- 'Virtual Machine': 0,
- 'message': 'Hello World from Server 1!'
- },
- {
- 'id': 'server2',
- 'Web Site': 0,
- 'Cloud Service': 0,
- 'Virtual Machine': 0,
- 'message': 'Hello World from Server 1!'
- }]
- nayana@nayana-HP-Notebook:~/Azure$ python3 Upload to azure cosmo.py
- Traceback (most recent call last):
- File "Upload to azure cosmo.py", line 52, in <module>
- 'message': 'Hello World from Server 2!'
- File "/usr/local/lib/python3.5/dist-packages/azure/cosmos/cosmos_client.py", line 1023, in CreateItem
- collection_id, document, path = self._GetContainerIdWithPathForItem(database_or_Container_link, document, options)
- File "/usr/local/lib/python3.5/dist-packages/azure/cosmos/cosmos_client.py", line 1080, in _GetContainerIdWithPathForItem
- CosmosClient.__ValidateResource(document)
- File "/usr/local/lib/python3.5/dist-packages/azure/cosmos/cosmos_client.py", line 2854, in __ValidateResource
- id = resource.get('id')
- AttributeError: 'list' object has no attribute 'get'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement