openshiftio / openshift.io

Red Hat OpenShift.io is an end-to-end development environment for planning, building and deploying modern applications.
https://openshift.io
97 stars 66 forks source link

ValidationError: None is not of type 'array' #4054

Closed msrb closed 6 years ago

msrb commented 6 years ago

https://errortracking.prod-preview.openshift.io/openshift_io/fabric8-analytics-production/issues/5719/

Exception(most recent call first)

ValidationError: None is not of type 'array'

Failed validating 'type' in schema['properties']['details']['items']['properties']['references']:
    {'type': 'array',
     'items': OrderedDict([('type', 'string'), ('format', 'uri')])}

On instance['details'][0]['references']:
    None
  File "celery/app/trace.py", line 375, in trace_task
    R = retval = fun(*args, **kwargs)
  File "celery/app/trace.py", line 632, in __protected_call__
    return self.run(*args, **kwargs)
  File "selinon/task_envelope.py", line 169, in run
    raise self.retry(max_retries=0, exc=exc)
  File "celery/app/task.py", line 668, in retry
    raise_with_context(exc)
  File "selinon/task_envelope.py", line 114, in run
    result = task.run(node_args)
  File "f8a_worker/base.py", line 116, in run
    self.validate_result(result)
  File "f8a_worker/base.py", line 155, in validate_result
    jsonschema.validate(result, schema)
  File "jsonschema/validators.py", line 541, in validate
    cls(schema, *args, **kwargs).validate(instance)
  File "jsonschema/validators.py", line 130, in validate
    raise error
msrb commented 6 years ago

Fixed in https://github.com/fabric8-analytics/fabric8-analytics-worker/commit/9cfeb714409991e1bfe843424bc3987cc0fdc539.