Hello all,
I am doing use of the next library cjapy, which is a wrapper from Adobe API. In particular is this library : https://github.com/pitchmuc/cjapy
The problem that I have is that sometimes, when I call to the function myReport = cja.getReport(path), the following error appears:
Traceback (most recent call last):
File "/home/voc_analitica/rluque/indicadores_ratios_v3/main_v1.0.6.py", line 1478, in <module>
main()
File "/home/voc_analitica/rluque/indicadores_ratios_v3/main_v1.0.6.py", line 671, in main
df1 = df_paginas_vistas(cja, file_name, columnas_reporte, fecha_1_str, fecha_2_str, fecha_3_str, fecha_4_str, fecha_5_str, fecha_6_str, segmento_pais)
File "/home/voc_analitica/rluque/indicadores_ratios_v3/main_v1.0.6.py", line 121, in df_paginas_vistas
df_final_actual = ejecutar_reporte(cja, path, columnas_reporte, fecha_1_str)
File "/home/voc_analitica/rluque/indicadores_ratios_v3/main_v1.0.6.py", line 48, in ejecutar_reporte
myReport = cja.getReport(path)
File "/home/voc_analitica/.local/lib/python3.7/site-packages/cjapy/cjapy.py", line 2302, in getReport
) = self._decrypteStaticData(dataRequest=dataRequest, response=res)
File "/home/voc_analitica/.local/lib/python3.7/site-packages/cjapy/cjapy.py", line 2137, in _decrypteStaticData
response["columns"]["columnIds"], response["summaryData"]["totals"]
KeyError: 'columns'
I don't know the reason why It happens sometimes yes and sometimes not.
Can anyone please give me a hand?
Thanks