a month ago - last edited 3 weeks ago
KeyError Traceback (most recent call last) File ~\Documents\WinPython\WPy64-31241\notebooks\sacapi\sacapi.py:614, in SACConnection.getModelMetadata(self, providerID) 613 mdMembers = {} --> 614 for cdMember in currDimResponseJson["value"]: 615 if "DATE" in cdMember: KeyError: 'value' During handling of the above exception, another exception occurred: AttributeError Traceback (most recent call last) Cell In[17], line 2 1 # 4 Get metadata with connection from Data Import Service ----> 2 metadata = sac.getModelMetadata(model_id) 3 dimension_keys = metadata.dimensions.keys() 4 print([key for key in dimension_keys]) File ~\Documents\WinPython\WPy64-31241\notebooks\sacapi\sacapi.py:649, in SACConnection.getModelMetadata(self, providerID) 647 except Exception as e: 648 errorMsg = "Unknown error during token acquisition." --> 649 if e.status_code: 650 errorMsg = "%s Status code %s from server. %s" % (errorMsg, e.status_code, e.error) 651 raise RESTError(errorMsg) AttributeError: 'KeyError' object has no attribute 'status_code'
I would appreciate any help or pointers. Thanks! MJ
Request clarification before answering.
User | Count |
---|---|
95 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.