Skip to content

PTZ Control returns 500 Internal Server Error - SOAP Fault: InvalidArgVal (ContinuousMove) #420

@rivandraa

Description

@rivandraa
Image

When attempting to control a CCTV camera using the PTZ control overlay in the Live View panel, the camera fails to move. Checking the browser developer console reveals that every movement action triggers a POST request to the PTZ API endpoint, which consistently fails with a 500 (Internal Server Error).

The server-side logs show a SOAP Fault indicating that an unsupported space argument is being referenced during the ContinuousMove request.

Steps to reproduce the behavior:

  1. Go to the 'Live View' panel.
  2. Select a stream that supports PTZ
  3. Open the 'PTZ Control' overlay panel.
  4. Click on any directional control arrow (Up, Down, Left, Right).
  5. See the 500 error in the browser console and the SOAP Fault in the server logs.

Expected Behavior
The PTZ command should be sent successfully using a space argument compatible with the camera's PTZ Node, returning a 200 OK status, and moving the camera.

Server Logs / Error Output

2026-05-17 18:52:26.959 ERROR Failed to send ContinuousMove request
2026-05-17 18:52:26.957 ERROR [PTZ] SOAP Fault: Code=env:Sender, Subcode=ter:InvalidArgVal, Reason=A space is referenced in an argument which is not supported by the PTZ Node.
2026-05-17 18:52:26.954 ERROR PTZ request failed with HTTP code 500

Browser Console Logs

POST http://192.168.88.254:8080/api/streams/home2/ptz/move 500 (Internal Server Error)
move @ LiveView-BK8on17M.js:1
(anonymous) @ LiveView-BK8on17M.js:1
onMouseDown @ LiveView-BK8on17M.js:1

Additional Context / Observations
Important Note: The camera's PTZ hardware and functionality work perfectly fine when controlled via ODM (Onvif Device Manager). The issue only occurs when attempting to control it through LightNVR, likely due to how the ContinuousMove space arguments are formatted or declared in the backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions