When we attempted to retrieve data using the Python API (DatastreamDSWS), we encountered the error shown below and were unable to obtain the data.
Would you happen to know the possible cause of this issue?
We apologize for the inconvenience, but if you have any idea what might be causing this error, we would greatly appreciate your guidance.
―――――――――――――――――――――――――――――――
Log
get_data : Exception Occured
(<class 'Exception'>, Exception('Invalid Token Value'), <traceback object at 0x00000189D7CE5F40>) Traceback (most recent call last):
File "I:\Python\kakaku-Python38-1\lib\site-packages\DatastreamDSWS\DS_Response.py", line 146, in get_data
raise Exception("Invalid Token Value")
Exception: Invalid Token Value
None
Traceback (most recent call last):
File "\\XXXXXXX\031_010_Download_DataStream_20260430_aoki_debug.py", line 20, in <module>
df.columns = [" - ".join(col[0:2]) for col in df.columns]
AttributeError: 'NoneType' object has no attribute 'columns'
―――――――――――――――――――――――――――――――
Python versionPython 3.8 (Python38)
Thank you very much for your continued support.