API missing tracker return data if first event isn't a post to webhook #5032
Labels
area:rasa-oss 🎡
Anything related to the open source Rasa framework
type:bug 🐛
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Rasa version: 1.6.0
Rasa SDK version (if used & relevant): 1.6.0
Rasa X version (if used & relevant):
Python version: Python 3.6.9 (Anaconda)
Operating system (windows, osx, ...): RHEL 7 (CentOS)
Issue: The tracker API isn't returning all the data if the first event isn't a post to webhook.
Error (including full traceback):
Missing information in return data (see below)
Command or request that led to error:
Clear history from mongoDB:
Started RASA with:
Posted a slot value to tracker, using postman (my sender id is "tester"):
POST to localhost:5005/conversations/tester/tracker/events
Post body: { "event": "slot", "name": "profile", "value": "corretor" }
Headers: { content-type: application/json }
Got a http 200 back with the following body:
Then I posted a message to the tracker (with postman):
POST to localhost:5005/webhooks/rest/webhook
Post body: { "sender":"tester", "message":"Hi"}
Headers: { content-type: application/json }
Got a http 200 back.
I then called the tracker (with postman)
GET : localhost:5005/conversations/tester/tracker
All the latest-message information is missing. Compare this to the following response if I post to webhook first (I dropped the mongo database again before posting this):
This works correctly in Rasa 1.4.6
Content of configuration file (config.yml) (if relevant):
Content of domain file (domain.yml) (if relevant):
The text was updated successfully, but these errors were encountered: