Hi,
I suggest adding some loggong to capture the error and debugging from there.
To add logging, import the logging module and get the logger:
import logging
LOG = logging.getLogger(__name__)
Then adjust your except Exception as e:
LOG.error(f"Failed to get token.", exc_info=True)
These changes will result in the error details being written to the xlSlim Python log file at %APPDATA%\Microsoft\AddIns\xlSlim\xlslim-python.log
Regards,
Russel