# Can't access Rasa server via postman

**URL:** <https://forum.rasa.com/t/cant-access-rasa-server-via-postman/14114>\
**Category:** Rasa Open Source\
**Created:** [August 8, 2019, 6:52pm UTC](https://forum.rasa.com/t/cant-access-rasa-server-via-postman/14114 "2019-08-08T18:52:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chapkovski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chapkovski/32/4497_2.png) [@chapkovski](https://forum.rasa.com/u/chapkovski)\
**Post date:** [August 8, 2019, 6:52pm UTC](https://forum.rasa.com/t/cant-access-rasa-server-via-postman/14114/1 "2019-08-08T18:52:12Z")

</div>

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](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](http://dpaste.com/071T936)

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

---

<div class="post-metadata">

**Author:** ![fede](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/fede/32/7095_2.png) [@fede](https://forum.rasa.com/u/fede)\
**Post date:** [August 9, 2019, 12:01pm UTC](https://forum.rasa.com/t/cant-access-rasa-server-via-postman/14114/2 "2019-08-09T12:01:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![chapkovski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chapkovski/32/4497_2.png) [@chapkovski](https://forum.rasa.com/u/chapkovski)\
**Post date:** [August 9, 2019, 12:03pm UTC](https://forum.rasa.com/t/cant-access-rasa-server-via-postman/14114/3 "2019-08-09T12:03:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ZohaibRamzan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zohaibramzan/32/22443_2.png) [@ZohaibRamzan](https://forum.rasa.com/u/ZohaibRamzan)\
**Post date:** [February 16, 2023, 1:56pm UTC](https://forum.rasa.com/t/cant-access-rasa-server-via-postman/14114/4 "2023-02-16T13:56:57Z")

</div>

> [@fede](#):
>
> curl -XPOST -d ‘{“message”:“hello”,“sender”:“test”}’ ‘[http://localhost:5005/webhooks/rest/webhook](http://localhost:5005/webhooks/rest/webhook)’

Hi, I have configured an EC2 instance and running a rasa server inside docker container. The port 80 of the instance is attched to port 5005 to the docker container. When I hit the above command using the instance terminal I get the response as: [{“recipient\_id”:“test”,“text”:“Hey! How are you?”}]

The proble is when I hit using postman with publich address of the EC2 instance and port 80. I am not able to send the request, here is the post request. [http://my-ec2-public-address:80/webhooks/rest/webhook](http://my-ec2-public-address:80/webhooks/rest/webhook) with body as: {“message”:“hello”,“sender”:“test”}

I have checked the instance security group which is configured with port 80 to get http request. What I am doing wrong?

---

<div class="post-metadata">

**Author:** ![rasa\_learner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rasa_learner/32/21721_2.png) [@rasa\_learner](https://forum.rasa.com/u/rasa_learner)\
**Post date:** [February 16, 2023, 8:58pm UTC](https://forum.rasa.com/t/cant-access-rasa-server-via-postman/14114/5 "2023-02-16T20:58:30Z")

</div>

Hi @ZohaibRamzan, please [start a new topic](https://forum.rasa.com/new-topic) as your query is different from this topic
