how do you call actions. I tried the following :
curl -d "etype=sum" -X POST http://localhost:5055/webhook
curl -d '{"etype":"sum"}' -X POST http://localhost:5055/webhook
but getting error, what do I do wrong :
/btw the documentation is unclear how do you do actions. Nowhere is mentioned that you have to start a server i.e. rasa run actions … and how you can test it/
ERROR rasa_sdk.endpoint - Exception on /webhook [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/dist-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python3.6/dist-packages/flask_cors/decorator.py", line 128, in wrapped_function
resp = make_response(f(*args, **kwargs))
File "/usr/local/lib/python3.6/dist-packages/rasa_sdk/endpoint.py", line 72, in webhook
check_version_compatibility(action_call.get("version"))
AttributeError: 'NoneType' object has no attribute 'get'