# PostgreSQL error "type object got multiple values for keyword argument 'host'"

**URL:** <https://forum.rasa.com/t/postgresql-error-type-object-got-multiple-values-for-keyword-argument-host/25167>\
**Category:** Rasa Open Source\
**Created:** [February 23, 2020, 1:11pm UTC](https://forum.rasa.com/t/postgresql-error-type-object-got-multiple-values-for-keyword-argument-host/25167 "2020-02-23T13:11:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rasafan](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rasafan](https://forum.rasa.com/u/rasafan)\
**Post date:** [February 23, 2020, 1:11pm UTC](https://forum.rasa.com/t/postgresql-error-type-object-got-multiple-values-for-keyword-argument-host/25167/1 "2020-02-23T13:11:20Z")

</div>

Any idea why I’m getting this errror?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/388f8e66a9851f795ec818bf7da848dcf05d5cde.png)

I’ve followed: [Event Brokers](https://rasa.com/docs/rasa/api/event-brokers/#sql-event-broker)

```
event_broker:
  type: SQL
  host: 127.0.0.1
  port: 5432
  dialect: postgresql
  username: myuser
  password: mypassword
  db: mydatabase

```

---

<div class="post-metadata">

**Author:** ![rasafan](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rasafan](https://forum.rasa.com/u/rasafan)\
**Post date:** [February 24, 2020, 11:23am UTC](https://forum.rasa.com/t/postgresql-error-type-object-got-multiple-values-for-keyword-argument-host/25167/2 "2020-02-24T11:23:49Z")

</div>

Anyone?

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [February 24, 2020, 8:39pm UTC](https://forum.rasa.com/t/postgresql-error-type-object-got-multiple-values-for-keyword-argument-host/25167/3 "2020-02-24T20:39:01Z")

</div>

Could you post the entire contents of your `endpoints.yml`?

---

<div class="post-metadata">

**Author:** ![rasafan](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rasafan](https://forum.rasa.com/u/rasafan)\
**Post date:** [February 24, 2020, 9:44pm UTC](https://forum.rasa.com/t/postgresql-error-type-object-got-multiple-values-for-keyword-argument-host/25167/4 "2020-02-24T21:44:31Z")

</div>

That is my entire endpoints.yml.

I’ve tried also with this but same thing occurs:

```
tracker_store:
  type: SQL
  dialect: "postgresql"
  url: "db"
  port: 5432
  db: postgres
  username: postgres
  password: pw
```

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [February 24, 2020, 10:20pm UTC](https://forum.rasa.com/t/postgresql-error-type-object-got-multiple-values-for-keyword-argument-host/25167/5 "2020-02-24T22:20:14Z")

</div>

thanks. What command are you running when you get this error?

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [February 24, 2020, 10:44pm UTC](https://forum.rasa.com/t/postgresql-error-type-object-got-multiple-values-for-keyword-argument-host/25167/6 "2020-02-24T22:44:42Z")

</div>

Using the key `url` instead of `host` worked for me:

```auto
event_broker:
  type: SQL
  url: 127.0.0.1
  port: 5432
  dialect: postgresql
  username: myuser
  password: mypassword
  db: mydatabase

```

---

<div class="post-metadata">

**Author:** ![prashant\_kamble](https://avatars.discourse-cdn.com/v4/letter/p/df705f/32.png) [@prashant\_kamble](https://forum.rasa.com/u/prashant_kamble)\
**Post date:** [May 2, 2020, 5:42am UTC](https://forum.rasa.com/t/postgresql-error-type-object-got-multiple-values-for-keyword-argument-host/25167/7 "2020-05-02T05:42:27Z")

</div>

Yeah it works with url. 😊

---

<div class="post-metadata">

**Author:** ![hari](https://avatars.discourse-cdn.com/v4/letter/h/cdc98d/32.png) [@hari](https://forum.rasa.com/u/hari)\
**Post date:** [July 28, 2020, 3:23pm UTC](https://forum.rasa.com/t/postgresql-error-type-object-got-multiple-values-for-keyword-argument-host/25167/8 "2020-07-28T15:23:11Z")

</div>

I got the same error. Changing the key from host to url worked for me. Thank you mloubser
