Can't Setup TAP Plugin v 2.0 Correctly?

I am using the correct secret and principal when setting up a new connection for the v2.0 tap plugin but the test keeps failing.

Hey @hayden_redd, did you get an error message? Looking to see which Exception the plugin hit.

Connect: Connecting…
rapid7/Proofpoint TAP:2.0.0. Step name: get_all_threats
Connection test failed!

Connection error. Please check that your service principal and secret are correct.
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/proofpoint_tap_rapid7_plugin-2.0.0-py3.8.egg/komand_proofpoint_tap/connection/connection.py”, line 23, in test
self.client.get_top_clickers({“window”: 14})
File “/usr/local/lib/python3.8/site-packages/proofpoint_tap_rapid7_plugin-2.0.0-py3.8.egg/komand_proofpoint_tap/util/api.py”, line 67, in get_top_clickers
response = self._call_api(“GET”, “people/top-clickers”, params=query_params)
File “/usr/local/lib/python3.8/site-packages/proofpoint_tap_rapid7_plugin-2.0.0-py3.8.egg/komand_proofpoint_tap/util/api.py”, line 35, in _call_api
raise PluginException(
insightconnect_plugin_runtime.exceptions.PluginException: An error occurred during plugin execution!

Invalid service principal or secret provided. Verify your service principal and secret are correct.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/insightconnect_plugin_runtime-4.2.0-py3.8.egg/insightconnect_plugin_runtime/plugin.py”, line 326, in handle_step
output = self.start_step(
File “/usr/local/lib/python3.8/site-packages/insightconnect_plugin_runtime-4.2.0-py3.8.egg/insightconnect_plugin_runtime/plugin.py”, line 481, in start_step
output = func()
File “/usr/local/lib/python3.8/site-packages/proofpoint_tap_rapid7_plugin-2.0.0-py3.8.egg/komand_proofpoint_tap/connection/connection.py”, line 25, in test
raise ConnectionTestException(
insightconnect_plugin_runtime.exceptions.ConnectionTestException: Connection test failed!

Connection error. Please check that your service principal and secret are correct.

Thanks @hayden_redd, we’re trying but not able to reproduce but I have a suspicion of what might be going on. We check for top clickers in the connection test, which succeeds in our test instance. If the credentials are verified, my guess is it may be an environmental difference that we need to account for. To test this, can you ignore the connection test and run the Get All Threats action (or some other action, that you would expect output), and then run the Get Top Clickers action with a value of 14 and then a value of 90. If one of these succeeds, this may point us in the right direction on how to fix.

so it works now lol just created a new set of api keys in TAP and put em in and now it works.