Can't access Rasa server via postman

I run server like that:

rasa run --enable-api

Get the following output:

2019-08-08 21:47:48 INFO engineio.server - Server initialized for sanic.

2019-08-08 21:47:48 INFO root - Starting Rasa server on http://localhost:5005

When I try to send a message to http://localhost:5005/webhooks/rest/webhook I get the following error:

sanic.exceptions.InvalidUsage: Failed when parsing body as json

Full log: dpaste: 071T936: by chapkovski@gmail.com

The message is just a simple json:

{ “sender”: “Rasa”, “message”: “Hi there!” }

What am I doing wrong?

Versions:

  • python= 3.6.8
  • rasa==1.1.8
  • rasa-core==0.14.5
  • rasa-nlu==0.15.1

Hi @chapkovski, could you please check for me the output of running curl -XPOST -d '{"message":"hello","sender":"test"}' 'http://localhost:5005/webhooks/rest/webhook' while you server is running? I want to make sure it’s not something related to the HTTP client.

Hi @fede! Thanks for your reply. I’ve just found a very stupid error, just an extra comma in JSON request. Sorry for bothering. Everything works just perfect now.