Here is the log output I get when I try to use the code
2022-02-13 21:25:40,916 - WARNING - Monitor started.
2022-02-13 21:25:44,326 - ERROR - Job "getData (trigger: interval[0:00:02], next run at: 2022-02-13 21:25:45 CET)" raised an exception
Traceback (most recent call last):
File...