Unexpected error with pydomo "ds_update"

Hi.
I use pydomo to daily import external data using the "ds_update" function. Today, on January 23, 2024, when I executed the script that I have been using so far, an unexpected error occurred, preventing the data from being imported. I operate three similar scripts, and all of them encountered the same error today.

I'm troubled as I don't understand the cause of the issue. Your guidance on this matter would be greatly appreciated.

At the end of my script is as follows( I have redacted the dataset ID):
domo = Domo(DomoClientID, DomoClientSecret, api_host = 'api.domo.com')
dataset_update = domo.ds_update('XXXX', data)


The error message that occurred is as follows:
Exception Traceback (most recent call last)

~\AppData\Local\Temp\ipykernel_4288\2793476071.py in <module>
      1 domo = Domo(DomoClientID,DomoClientSecret,api_host = 'api.domo.com')
----> 2 dataset_update = domo.ds_update('XXXX',data)
~\.conda\envs\domo_basic\lib\site-packages\pydomo\__init__.py in ds_update(self, ds_id, df_up)
    212 
213 def ds_update(self, ds_id, df_up):
--> 214 return self.utilities.stream_upload(ds_id, df_up)
215
216 ######### PDP #########
~\.conda\envs\domo_basic\lib\site-packages\pydomo\utilities\UtilitiesClient.py in stream_upload(self, ds_id, df_up, warn_schema_change)
     58 
59 def stream_upload(self, ds_id, df_up, warn_schema_change=True):
---> 60 domoSchema = self.domo_schema(ds_id)
61 dataSchema = self.data_schema(df_up)
62
~\.conda\envs\domo_basic\lib\site-packages\pydomo\utilities\UtilitiesClient.py in domo_schema(self, ds_id)
     17 
18 def domo_schema(self, ds_id):
---> 19 this_get = self.ds.get(ds_id)
20 return this_get['schema']['columns']
21
~\.conda\envs\domo_basic\lib\site-packages\pydomo\datasets\DataSetClient.py in get(self, dataset_id)
     38         url = '{base}/{dataset_id}'.format(
39 base=URL_BASE, dataset_id=dataset_id)
---> 40 return self._get(url, DATA_SET_DESC)
41
42 """
~\.conda\envs\domo_basic\lib\site-packages\pydomo\DomoAPIClient.py in _get(self, url, obj_desc)
     31             self.logger.debug("Error retrieving " + obj_desc + ": "
32 + self.transport.dump_response(response))
---> 33 raise Exception("Error retrieving " + obj_desc + ": "
34 + response.text)
35
Exception: Error retrieving DataSet: 

Best Answer

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    This appears to be a system-wide issue. I'd recommend logging a ticket with Domo Support. I'm having the same issue as well.

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**

Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    This appears to be a system-wide issue. I'd recommend logging a ticket with Domo Support. I'm having the same issue as well.

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**