Appium/settings No such route

I am running appium server 1.22 using npm
In my script i am trying to set the the compose driver:
client.updateSettings({ driver: 'compose' });

But i am getting an error
No such route: /session/23f05888-69d8-447e-b710-422188fd9456/appium/settings

Could you please tell me if i miss something?

Here is my javascript script:

const wdio = require("webdriverio");

const opts = {
  path: '/wd/hub',
  port: 4723,
  capabilities: {
    platformName: "Android",
    platformVersion: "10",
    deviceName: "Google Pixel 2XL",
    app: "/correctPath",
    appPackage: "correctPackage",
    appActivity: "correctActivity",
    forceEspressoRebuild: true,
    automationName: "Espresso",
    espressoBuildConfig: "{ \"additionalAppDependencies\": [ \"androidx.lifecycle:lifecycle-extensions:2.1.0\" ], \"composeVersion\":\"1.2.1\" }"

async function main () {
  try {
    const client = await wdio.remote(opts);
    await client.updateSettings({ driver: 'compose' });

    await client.deleteSession();
  } catch (error) {
    console.error("HSI ERROR", error)