# 500 Internal Server Error when voting on a poll

**URL:** <https://meta.discourse.org/t/500-internal-server-error-when-voting-on-a-poll/213480>\
**Category:** Bug\
**Created:** [December 30, 2021, 9:42pm UTC](https://meta.discourse.org/t/500-internal-server-error-when-voting-on-a-poll/213480 "2021-12-30T21:42:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [December 30, 2021, 10:48pm UTC](https://meta.discourse.org/t/500-internal-server-error-when-voting-on-a-poll/213480/3 "2021-12-30T22:48:01Z")

</div>

Repro on meta (leave out the `min` attribute)

```plaintext
[poll type=multiple results=always max=2 chartType=bar]
* a
* b
[/poll]

```

_Poll ([view on site](https://meta.discourse.org/t/500-internal-server-error-when-voting-on-a-poll/213480/3))_

Caused by this [commit](https://github.com/discourse/discourse/commit/1d0faedfbc3a8b77b971dc70d25e30791dbb6e0b#diff-8b92652067375f4671c1199ee4e945f9a0771d7f10bce6f34fde2cab0d6c544f), `min` is not checked for existence [here](https://github.com/discourse/discourse/commit/1d0faedfbc3a8b77b971dc70d25e30791dbb6e0b#diff-8b92652067375f4671c1199ee4e945f9a0771d7f10bce6f34fde2cab0d6c544fR314-R332) @tgxworld .

---

_[View the full topic](https://meta.discourse.org/t/500-internal-server-error-when-voting-on-a-poll/213480)._
