pydomo - dataset export json.decoder.JSONDecodeError
I've been using the new PyDomo libarary in python 3.x and it has been working great... until I try to export a dataset at which point I get:
File "C:\Users\UserName\Python35\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
My early hunch is that this is due to the api call returning the data as a bit-string which would need to be converted to a string before being deconded by the json package.
Code to reproduce:
from pydomo import Domo
domo_id = Insert domo api user ID as string here
domo_secret = Insert Domo secret as string here
dataset_id = Insert Dataset ID as string here
destination_path = 'C:\\Users\\Username\\Documents\\test_data.csv'
include_csv_header = True
domo = Domo(domo_id,domo_secret,'api.domo.com',True,'42N',logging.INFO)
csv_file = domo.datasets.data_export_to_file(dataset_id,destination_path,include_csv_header)
Has anyone run into anything similar / know if a fix is possible without making changes to the package?