Skip to content

Failed validating errors #20

@SimplySeth

Description

@SimplySeth

st2 2.9.1, on Python 2.7.6 (docker container)

I have a rule like below ...

action:
    parameters:
        channel: devops-test
        message: I was triggered
        route: hubot
    ref: chatops.post_message
context:
    user: st2admin
criteria:
    trigger.project:
        pattern: INFVZC
        type: equals
description: jira001
enabled: true
name: jira001
pack: jira
ref: jira.jira001
tags: []
trigger:
    parameters: {}
    ref: jira.issues_tracker
    type: jira.issues_tracker
type:
    parameters: {}
    ref: standard
uid: rule:jira:jira001

it looks like the rule is trying to run but there are no enforcements and I get the error below in /var/log/st2/st2sensorcontainer.log:

2018-12-13 22:19:41,418 139658612447024 WARNING trigger_dispatcher [-] Failed to validate payload ({'created': u'2018-12-13T17:19:26.000-0500', 'issue_browse_url': u'http://validhost:8080/browse/INFVZC-63', 'fix_versions': [], 'project': u'INFVZC', 'assignee': None, 'issue_type': u'Service Request', 'issue_name': u'INFVZC-63', 'issue_url': u'http://validhost:8080/rest/api/2/issue/121263'}) for trigger "jira.issues_tracker": [] is not of type u'string', 'null'

Failed validating u'type' in schema[u'properties'][u'fix_versions']:
    {u'type': [u'string', 'null']}

On instance[u'fix_versions']:
    []
2018-12-13 22:19:41,418 139658612447024 WARNING trigger_dispatcher [-] Trigger payload validation failed and validation is enabled, not dispatching a trigger "jira.issues_tracker" ({'created': u'2018-12-13T17:19:26.000-0500', 'issue_browse_url': u'http://validhost:8080/browse/INFVZC-63', 'fix_versions': [], 'project': u'INFVZC', 'assignee': None, 'issue_type': u'Service Request', 'issue_name': u'INFVZC-63', 'issue_url': u'http://validhost:8080/rest/api/2/issue/121263'}): [] is not of type u'string', 'null'

Failed validating u'type' in schema[u'properties'][u'fix_versions']:
    {u'type': [u'string', 'null']}

On instance[u'fix_versions']:
    []

st2 trigger-instance list --trigger=jira.jira001 produces an empty result

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions