Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to complete Data Collection tasks #60

Closed
mhouston007 opened this issue Feb 2, 2021 · 1 comment
Closed

Unable to complete Data Collection tasks #60

mhouston007 opened this issue Feb 2, 2021 · 1 comment

Comments

@mhouston007
Copy link

mhouston007 commented Feb 2, 2021

Describe the bug
Using demisto-py I have been unable to close Data Collection tasks using the submit_task_form() method

To Reproduce
Steps to reproduce the behavior:

  1. Create an incident in XSOAR that will open a Data Collection task
  2. Use submit_task_form() to attempt to complete the task
  3. Receive error and task remains open

Expected behavior
Use submit_task_form() to close the task without error

Code

import demisto_client

api_key = '12345678901234567890'
host = 'https://10.10.10.10'

api_instance = demisto_client.configure(base_url=host, api_key=api_key, verify_ssl=False, debug=True)

answers = r"C:\Users\mhouston\Desktop\throwaway.txt"
some_file = r"C:\Users\mhouston\Desktop\throwaway2.txt"

api_instance.submit_task_form(137,1,answers,some_file)

Contents of throwaway.txt and throwaway2.txt:
throwaway.txt

{
    "0":"Yes"
}

throwaway2.txt

{
    "0":"Yes"
}

Screenshots
image

Environment

  • Python Version: 3.8.3
  • OS: Windows
  • Demisto Version: 6.1.0 619173
  • Marketplace Version: 266940
@glicht
Copy link
Collaborator

glicht commented Feb 2, 2021

@mhouston007 let's handle this via etc.

@glicht glicht closed this as completed Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants