# Internal server error when making polls

**URL:** <https://meta.discourse.org/t/internal-server-error-when-making-polls/119136>\
**Category:** Product Support\
**Created:** [May 31, 2019, 12:05am UTC](https://meta.discourse.org/t/internal-server-error-when-making-polls/119136 "2019-05-31T00:05:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Ellibereth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ellibereth/32/202896_2.png) [@Ellibereth](https://meta.discourse.org/u/Ellibereth)\
**Post date:** [May 31, 2019, 1:12am UTC](https://meta.discourse.org/t/internal-server-error-when-making-polls/119136/3 "2019-05-31T01:12:49Z")

</div>

```plaintext
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_polls_on_post_id_and_name"
DETAIL: Key (post_id, name)=(74475, poll) already exists.
: INSERT INTO "polls" ("post_id", "created_at", "updated_at") VALUES (74475, '2019-05-31 01:11:30.464491', '2019-05-31 01:11:30.464491') RETURNING "id")
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-1.0.2/lib/patches/db/pg.rb:72:in `async_exec_params'

```

```plaintext
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_polls_on_post_id_and_name"
DETAIL: Key (post_id, name)=(74475, poll) already exists.
: INSERT INTO "polls" ("post_id", "created_at", "updated_at") VALUES (74475, '2019-05-31 01:11:30.464491', '2019-05-31 01:11:30.464491') RETURNING "id"

```

---

_[View the full topic](https://meta.discourse.org/t/internal-server-error-when-making-polls/119136)._
