Generic Polling > verify you have proper integration enabled to support it

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Generic Polling > verify you have proper integration enabled to support it

L2 Linker

Hello,

 

There is a place where I need to use generic polling but I can't solve this error.

My script is as follows. where could be the problem here?

def check_runid(client: UC4Client, args: Dict[str, Any]):

runid: str = args.get('run_id')

url = f"{client.base_url}/{runid}"



response = requests.get(url, auth=(client.api_user, client.api_pass), verify=False)

one_runid = (response.json())
print(one_runid)



return CommandResults(
readable_output=one_runid,
outputs_prefix="UC4.Search",
outputs_key_field = "run_id",
outputs = one_runid)

 

 

1 REPLY 1

L3 Networker

Hi @KeremGunal – To better assist, I first want to make sure I understand your use case: What are you trying to achieve here?

 

Also your post title mentions Generic Polling, but the code does not involve polling, so it is unclear exactly what the issue is. Please include a screenshot of the error message and the exact command or playbook task that leads to the error.

  • 321 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!