I attempted to generate tokens via the CLI generateTokens call and noticed errors as follows:
File "/Users/XXXX/Twingate-CLI/./logics/ConnectorsLogics.py", line 199, in item_get_tokens j = StdAPIUtils.generic_api_call_handler(outputFormat,sessionname,get_connector_generate_tokens_resources,{'itemid':itemid},ConnectorsTransformers.GetGenTokensAsCsv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: generic_api_call_handler() takes 3 positional arguments but 5 were given
I attempted to generate tokens via the CLI generateTokens call and noticed errors as follows:
File "/Users/XXXX/Twingate-CLI/./logics/ConnectorsLogics.py", line 199, in item_get_tokens j = StdAPIUtils.generic_api_call_handler(outputFormat,sessionname,get_connector_generate_tokens_resources,{'itemid':itemid},ConnectorsTransformers.GetGenTokensAsCsv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: generic_api_call_handler() takes 3 positional arguments but 5 were given
Looks like this call wasn't updated in https://github.com/Twingate-Labs/Twingate-CLI/commit/e19206dacdba04810b19d4964741e38df468e5ec#diff-8c1470d241f1e0f1334887b601092f391f0a5a9938c27ef465b5e85cf9486320L190
Made a quick PR fix: https://github.com/Twingate-Labs/Twingate-CLI/pull/12