# Internal Server Error when navigating to face track URL

**URL:** <https://forum.sunfounder.com/t/internal-server-error-when-navigating-to-face-track-url/2532>\
**Category:** General Discussion\
**Created:** [January 29, 2025, 5:33pm UTC](https://forum.sunfounder.com/t/internal-server-error-when-navigating-to-face-track-url/2532 "2025-01-29T17:33:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Solinus](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.sunfounder.com/solinus/32/1301_2.png) [@Solinus](https://forum.sunfounder.com/u/Solinus)\
**Post date:** [January 29, 2025, 5:33pm UTC](https://forum.sunfounder.com/t/internal-server-error-when-navigating-to-face-track-url/2532/1 "2025-01-29T17:33:24Z")

</div>

Launches fine in PowerShell, but I get these errors when I open a browser for the generated URL

```auto

Starting web streaming ...
 * Serving Flask app 'vilib.vilib'
 * Debug mode: off
start
Error on request:umber: 0 | ex, ey: 0, 0 | yrp: 0, 0, 0
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 335, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 324, in execute
    for data in application_iter:
  File "/usr/lib/python3/dist-packages/werkzeug/wsgi.py", line 500, in __next__
    return self._next()
           ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/werkzeug/wrappers/response.py", line 50, in _iter_encoded
    for item in iterable:
  File "/usr/local/lib/python3.11/dist-packages/vilib/vilib.py", line 88, in gen
    frame = get_frame()
            ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/vilib/vilib.py", line 70, in get_frame
    return cv2.imencode('.jpg', Vilib.flask_img)[1].tobytes()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.11.0) :-1: error: (-5:Bad argument) in function 'imencode'
> Overload resolution failed:
> - img is not a numpy array, neither a scalar
> - Expected Ptr<cv::UMat> for argument 'img'
Stopping and returning to the initial position ... 0, 0

```

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [February 5, 2025, 7:42am UTC](https://forum.sunfounder.com/t/internal-server-error-when-navigating-to-face-track-url/2532/2 "2025-02-05T07:42:40Z")

</div>

From your error message, the program is not getting the camera data, is your camera well connected? You can try reconnecting the camera cable, as well as the camera IMOS terminals, and use the libcamera-hello command to test if the camera is working properly.
