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

Error in matching findings #20

Open
tjarrettveracode opened this issue Oct 14, 2021 · 0 comments
Open

Error in matching findings #20

tjarrettveracode opened this issue Oct 14, 2021 · 0 comments
Assignees

Comments

@tjarrettveracode
Copy link
Owner

Sanitized log file excerpt:

Applying 3 annotations for flaw ID 132 in application xxxxx (guid: yyyyyy)...
Error [404]: {"_embedded":{"api_errors":[{"id":"6879d6ae-8d5a-4beb-afdb-68959e205904","code":"NOT_FOUND","title":"Not Found.","detail":"error = not_found flaw_id_list = 132; ","status":"404"
,"source":{"pointer":"/appsec/v2/applications/yyyyyy/annotations","parameter":null}}]}} for request https://api.veracode.com/appsec/v2/applications/yyyyyy/annotations
NoneType: None
Traceback (most recent call last):
  File "MitigationCopier.py", line 287, in <module>
    main()
  File "MitigationCopier.py", line 281, in main
    from_sandbox_guid=results_from_sandbox_id,to_sandbox_guid=results_to_sandbox_id,propose_only=propose_only,id_list=id_list,fuzzy_match=fuzzy_match)
  File "MitigationCopier.py", line 218, in match_for_scan_type
    update_mitigation_info_rest(to_app_guid, to_id, proposal_action, proposal_comment, to_sandbox_guid, propose_only)
  File "MitigationCopier.py", line 146, in update_mitigation_info_rest
    Findings().add_annotation(to_app_guid,flaw_id_list,comment,action)
  File "(path)/findings.py", line 56, in add_annotation
    return APIHelper()._rest_request(uri,"POST",body=payload,params=params)
  File "(path)/veracode_api_py/apihelper.py", line 75, in _rest_request
    raise requests.exceptions.RequestException()
requests.exceptions.RequestException
@tjarrettveracode tjarrettveracode self-assigned this Oct 14, 2021
@tjarrettveracode tjarrettveracode changed the title Error in matching dynamic findings Error in matching findings Oct 14, 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

1 participant