# Caddy issues with ID Verification

**URL:** <https://discuss.openedx.org/t/caddy-issues-with-id-verification/8276>\
**Category:** Site Operators\
**Tags:** tutor\
**Created:** [September 14, 2022, 1:35pm UTC](https://discuss.openedx.org/t/caddy-issues-with-id-verification/8276 "2022-09-14T13:35:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sambapete](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/sambapete/32/4100_2.png) [@sambapete](https://discuss.openedx.org/u/sambapete)\
**Post date:** [September 14, 2022, 1:35pm UTC](https://discuss.openedx.org/t/caddy-issues-with-id-verification/8276/1 "2022-09-14T13:35:01Z")

</div>

I have encountered a very interesting problem in the last few days and I wanted to let people know. Don’t worry, the problem has been fixed but what happened might be interesting to other people facing a similar situation.

In the past with the Native environment, we used ID Verification in order to validate the identity of users who paid for a certificate. In order to make it work on our systems, we changed a few things in our fork in order to “intercept” calls to SoftwareSecure and use our own S3 bucket for the photos, but it has worked for the past 6 or 7 years and it is still working in our current Native installation with Koa 😁

We ran into a problem with Tutor. Some of the photos wouldn’t load into our bucket. At first, I could not figure out why…

I had no problem from home or Monday when using my USB Logitech webcam. But when using the camera on my iMac at work on Tuesday, it wouldn’t work at all. I looked in the LMS logs, but could only find references to not providing a face id. But I just did… Weird.

I spent a few hours trying to figure out what was going on but could not find a lead. I decided to launch “tutor local start” from a terminal in order to look at the Tutor console logs. And then I saw it. An entry about the request\_body size of an http request being too big for the Photo ID.

I decided to upload an image instead of taking a photograph of the Photo ID. It worked!

So, my camera at work takes larger picture than my camera at home. And that was part of the problem.

As a result, I had to edit $TUTOR\_ROOT/env/apps/caddy/Caddyfile in order to modify the max\_size of request\_body for the LMS. I guess the values used by the Caddy configuration file were slightly different than what was used previously by Nginx in the Native installation.

Stopping Tutor and restarting it fixed everything 😁

---

<div class="post-metadata">

**Author:** ![regis](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/regis/32/2640_2.png) [@regis](https://discuss.openedx.org/u/regis)\
**Post date:** [September 20, 2022, 10:17am UTC](https://discuss.openedx.org/t/caddy-issues-with-id-verification/8276/2 "2022-09-20T10:17:04Z")

</div>

Should we modify the request body `max_size` for certain urls? If yes, which one?

---

<div class="post-metadata">

**Author:** ![sambapete](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/sambapete/32/4100_2.png) [@sambapete](https://discuss.openedx.org/u/sambapete)\
**Post date:** [September 20, 2022, 5:22pm UTC](https://discuss.openedx.org/t/caddy-issues-with-id-verification/8276/3 "2022-09-20T17:22:54Z")

</div>

I would have to check which specific URL was the problem. Definitely the Photo ID (not the Face ID).

I will get back to you. I have a workaround for now so it is not an emergency.
