n-yuzuto / health_bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

health_bot

error is here

2021-08-21 01:27:54 ERROR    rasa.core.processor  - Encountered an exception while running action 'health_form'.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
Traceback (most recent call last):
  File "c:\users\yna20\anaconda3\envs\rasa_beginner\lib\site-packages\rasa\core\processor.py", line 772, in _run_action
    events = await action.run(
  File "c:\users\yna20\anaconda3\envs\rasa_beginner\lib\site-packages\rasa\core\actions\action.py", line 689, in run
    self._validate_action_result(response)
  File "c:\users\yna20\anaconda3\envs\rasa_beginner\lib\site-packages\rasa\core\actions\action.py", line 616, in _validate_action_result
    raise e
  File "c:\users\yna20\anaconda3\envs\rasa_beginner\lib\site-packages\rasa\core\actions\action.py", line 607, in _validate_action_result
    validate(result, self.action_response_format_spec())
  File "c:\users\yna20\anaconda3\envs\rasa_beginner\lib\site-packages\jsonschema\validators.py", line 934, in validate
    raise error
jsonschema.exceptions.ValidationError: None is not of type 'object'. Failed to validate Action server response from API, make sure your response from the Action endpoint is valid. For more information about the format visit https://rasa.com/docs/rasa/custom-actions

Failed validating 'type' in schema:
    {'properties': {'events': {'items': {'oneOf': [{'properties': {'event': {'const': 'user'},
                                                                   'input_channel': {'type': ['string',
                                                                                              'null']},
                                                                   'message_id': {'type': ['string',
                                                                                           'null']},
                                                                   'parse_data': {'properties': {'entities': {'items': {'properties': {'confidence': {'type': 'number'},
                                                                                                                                       'end': {'type': 'integer'},
                                                                                                                                       'entity': {'type': 'string'},
                                                                                                                                       'extractor': {'type': ['string',
                                                                                                                                                              'null']},
                                                                                                                                       'group': {'type': ['string',
                                                                                                                                                          'null']},
                                                                                                                                       'role': {'type': ['string',
                                                                                                                                                         'null']},
                                                                                                                                       'start': {'type': 'integer'},
                                                                                                                                       'value': {}},
                                                                                                                        'required': ['entity',
                                                                                                                                     'value'],
                                                                                                                        'type': 'object'},
                                                                                                              'type': 'array'},
                                                                                                 'intent': {'properties': {'confidence': {'type': 'number'},
                                                                                                                           'id': {'type': 'number'},
                                                                                                                           'name': {'type': 'string'}},
                                                                                                            'type': 'object'},
                                                                                                 'intent_ranking': {'items': {'properties': {'confidence': {'type': 'number'},
                                                                                                                                             'id': {'type': 'number'},
                                                                                                                                             'name': {'type': 'string'}},
                                                                                                                              'type': 'object'},
                                                                                                                    'type': 'array'},
                                                                                                 'response_selector': {'oneOf': [{'properties': {'all_retrieval_intents': {'type': 'array'}}},
                                                                                                                                 {'patternProperties': {'[\\w/]': {'properties': {'ranking': {'items': {'properties': {'confidence': {'type': 'number'},
                                                                                                                                                                                                                       'id': {'type': 'number'},                                                                                                                                                                                                                       'intent_response_key': {'type': 'string'}},
                                                                                                                                                                                                        'type': 'object'},
                                                                                                                                                                                              'type': 'array'},
                                                                                                                                                                                  'response': {'properties': {'confidence': {'type': 'number'},
                                                                                                                                                                                                              'intent_response_key': {'type': 'string'},
                                                                                                                                                                                                              'response_templates': {'items': {'properties': {'text': {'type': 'string'}},
                                                                                                                                                                                                                                               'type': 'object'},
                                                                                                                                                                                                                                     'type': 'array'},
                                                                                                                                                                                                              'responses': {'items': {'properties': {'text': {'type': 'string'}},
                                                                                                                                                                                                                                      'type': 'object'},
                                                                                                                                                                                                                            'type': 'array'},
                                                                                                                                                                                                              'template_name': {'type': 'string'},
                                                                                                                                                                                                              'utter_action': {'type': 'string'}},
                                                                                                                                                                                               'type': 'object'}},
                                                                                                                                                                   'type': 'object'}}}],
                                                                                                                       'type': 'object'},
                                                                                                 'text': {'type': ['string',
                                                                                                                   'null']}},
                                                                                  'type': 'object'},
                                                                   'text': {'type': ['string',
                                                                                     'null']}}},
                                                   {'properties': {'action_text': {'type': ['string',
                                                                                            'null']},
                                                                   'confidence': {'type': ['number',
                                                                                           'null']},
                                                                   'event': {'const': 'action'},
                                                                   'hide_rule_turn': {'type': 'boolean'},
                                                                   'name': {'type': ['string',
                                                                                     'null']},
                                                                   'policy': {'type': ['string',
                                                                                       'null']}}},
                                                   {'properties': {'event': {'const': 'slot'},
                                                                   'name': {'type': 'string'},
                                                                   'value': {}},
                                                    'required': ['name',
                                                                 'value']},
                                                   {'properties': {'entities': {'items': {'properties': {'confidence': {'type': 'number'},
                                                                                                         'end': {'type': 'integer'},
                                                                                                         'entity': {'type': 'string'},
                                                                                                         'extractor': {'type': ['string',
                                                                                                                                'null']},
                                                                                                         'group': {'type': ['string',
                                                                                                                            'null']},
                                                                                                         'role': {'type': ['string',
                                                                                                                           'null']},
                                                                                                         'start': {'type': 'integer'},
                                                                                                         'value': {}},
                                                                                          'required': ['entity',
                                                                                                       'value'],
                                                                                          'type': 'object'},
                                                                                'type': 'array'},
                                                                   'event': {'const': 'entities'}},
                                                    'required': ['entities']},
                                                   {'properties': {'event': {'const': 'user_featurization'}}},
                                                   {'properties': {'event': {'const': 'cancel_reminder'}}},
                                                   {'properties': {'event': {'const': 'reminder'}}},
                                                   {'properties': {'event': {'const': 'action_execution_rejected'}}},
                                                   {'properties': {'event': {'const': 'form_validation'}}},
                                                   {'properties': {'event': {'const': 'loop_interrupted'}}},
                                                   {'properties': {'event': {'const': 'form'}}},
                                                   {'properties': {'event': {'const': 'active_loop'}}},
                                                   {'properties': {'event': {'const': 'reset_slots'}}},
                                                   {'properties': {'event': {'const': 'resume'}}},
                                                   {'properties': {'event': {'const': 'pause'}}},
                                                   {'properties': {'event': {'const': 'followup'}}},
                                                   {'properties': {'event': {'const': 'export'}}},
                                                   {'properties': {'event': {'const': 'restart'}}},
                                                   {'properties': {'event': {'const': 'undo'}}},
                                                   {'properties': {'event': {'const': 'rewind'}}},
                                                   {'properties': {'event': {'const': 'bot'}}},
                                                   {'properties': {'event': {'const': 'session_started'}}},
                                                   {'properties': {'event': {'const': 'agent'}}}],
                                         'properties': {'event': {'type': 'string'},
                                                        'metadata': {'type': ['object',
                                                                              'null']},
                                                        'timestamp': {'type': ['number',
                                                                               'null']}},
                                         'required': ['event'],
                                         'type': 'object'},
                               'type': 'array'},
                    'responses': {'items': {'type': 'object'},
                                  'type': 'array'}},
     'type': 'object'}

On instance:
    None

About


Languages

Language:Python 100.0%