# API 500 response: removing member from group

**URL:** <https://meta.discourse.org/t/api-500-response-removing-member-from-group/105856>\
**Category:** Feature\
**Created:** [January 7, 2019, 3:16am UTC](https://meta.discourse.org/t/api-500-response-removing-member-from-group/105856 "2019-01-07T03:16:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [January 7, 2019, 4:38am UTC](https://meta.discourse.org/t/api-500-response-removing-member-from-group/105856/2 "2019-01-07T04:38:19Z")

</div>

Hmmm … @tgxworld this sure is some confusing code:

> <https://github.com/discourse/discourse/blob/77d947701c870cb4bd4ec7cb8e9786962c5bf58e/app/controllers/groups_controller.rb#L330-L330>

Not sure how it even works to be honest, how is the ajax call able to pass a string there?

---

_[View the full topic](https://meta.discourse.org/t/api-500-response-removing-member-from-group/105856)._
