Kodi.call_method returns too many parameters

Does anyone see why I’m getting Too many parameters returned on using
kodi.call_method?

Using an empty string for directory gives another error (wrong input), could it be this parameter?

entity_id: media_player.localhost
method: Files.GetDirectory
directory: "plugin://plugin.video.arteplussept/sub_category/NEA"
media: video
playerid: 1

Returns on listening to kodi_call_method_result:

{
    "event_type": "kodi_call_method_result",
    "data": {
        "entity_id": "media_player.localhost",
        "result": {
            "code": -32602,
            "data": {
                "message": "Too many parameters",
                "method": "Files.GetDirectory",
                "stack": {
                    "name": "media",
                    "type": "string"
                }
            },
            "message": "Invalid params."
        },
        "result_ok": false,
        "input": {
            "method": "Files.GetDirectory",
            "params": {
                "directory": "plugin://plugin.video.arteplussept/sub_category/NEA",
                "media": "video",
                "playerid": 1
            }
        }
    },
    "origin": "LOCAL",
    "time_fired": "2021-03-26T18:42:46.232686+00:00",
    "context": {
        "id": "625f8e55e0ee537ed91b295633d207b2",
        "parent_id": null,
        "user_id": null
    }
}

Curl works without hassle:

curl -X POST \
  http://raspberrypi:8080/jsonrpc \
  -H 'Content-Type: application/json' \
  -H 'Host: 127.0.0.1:8080' \
  -d '{"jsonrpc":"2.0","id":1,"method":"Files.GetDirectory","params":{"directory": "plugin://plugin.video.arteplussept/sub_category/NEA", "media": "video"}}'