tm1py
tm1py copied to clipboard
Raise meaningful exception when no response is returned from TM1
Hi @sbethea-cw,
please recreate the situation in which TM1 does not return a response to a request when using this branch of TM1py.
TM1py should now raise a TM1pyNoResponseException
.
pip uninstall tm1py
pip install https://github.com/cubewise-code/tm1py/archive/refs/heads/feature/informative-exception-when-no-response.zip
Hi @MariusWirtz, I installed the TM1py version you linked and ran the test, but it did not raise the TM1pyNoResponseException. It still raised the same error: AttributeError: 'NoneType' object has no attribute 'json'
Please see below.
2022-07-27 12:38:41,054 - INFO - Synchronization script... It will synchronize the D365 RR Reporting cube as clstg D365 RR Reporting on tm1cloudusemeadev.
2022-07-27 12:38:42,514 - INFO - Connection to source server (tm1premusprod) completed.
2022-07-27 12:38:43,188 - INFO - Connection to Target server (tm1cloudusemeadev) completed.
2022-07-27 12:38:43,388 - INFO - Target TM1 version is 11.8.00800.5.
2022-07-27 12:38:43,388 - INFO - lasc-tm1-01 --> https://aristo-dev.planning-analytics.cloud.ibm.com/tm1/api/USEMEA%20Dev
2022-07-27 12:38:43,389 - INFO - Determining cube logging setting for the clstg D365 RR Reporting cube on tm1cloudusemeadev.
2022-07-27 12:38:44,232 - INFO - Clearing target data for the clstg D365 RR Reporting cube on tm1cloudusemeadev.
2022-07-27 12:38:44,868 - INFO - Clearing data in clstg D365 RR Reporting via MDX.
2022-07-27 12:39:48,526 - INFO - Clearing data elapsed time: 0:01:03.657925
2022-07-27 12:39:48,526 - INFO - Synchronizing data from the D365 RR Reporting cube on tm1premusprod to the clstg D365 RR Reporting on tm1cloudusemeadev.
2022-07-27 12:39:48,526 - INFO - Start sync_data
2022-07-27 12:39:49,216 - INFO - sync_data: Querying data from D365 RR Reporting to clstg D365 RR Reporting. Max workers: 4.
2022-07-27 12:39:49,216 - INFO - sync_data: Calling transfer_async function
2022-07-27 12:54:39,141 - ERROR - Unexpected Error
Traceback (most recent call last):
File "C:/Users/Shane/Python/Scripts/Clients/Aristocrat/Data_Sync_Cube_Between_Servers-Retry-NO-TENACITY.py", line 383, in