# What causes a 500 when stopping a recording?

**URL:** <https://openvidu.discourse.group/t/what-causes-a-500-when-stopping-a-recording/211>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [March 7, 2020, 11:12pm UTC](https://openvidu.discourse.group/t/what-causes-a-500-when-stopping-a-recording/211 "2020-03-07T23:12:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://openvidu.discourse.group/u/Adam)\
**Post date:** [March 7, 2020, 11:12pm UTC](https://openvidu.discourse.group/t/what-causes-a-500-when-stopping-a-recording/211/1 "2020-03-07T23:12:41Z")

</div>

I am getting 500 errors fairly consistently when calling the API endpoint to stop a recording. It doesn’t happen every time, but very often. I am running OpenVidu in my local dev environment with docker. In my app, recording is stopped and restarted several times in a session. The 500 error happens on about the 3rd stop.

Also, when this happens, the session cannot be deleted, and I get errors when trying to restart recording, presumably because the other recording is still going. Since the session cannot be deleted I have to restart the server.
