- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-08-2025 12:03 PM
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)
03-10-2025 01:11 PM
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.
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!