WebDriverException: Message: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource

I have installed Appium through NPM. However, when I start the server and run my tests I get the below error:

WebDriverException: Message: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource.

Appium > Robotframework code:
Testcase
Check Login-Server

Check Login-Server
al.Open application http://localhost:4725/wd/hub
… alias=Erwin
… automationName=UiAutomator2
… platformName=Android
… platformVersion=12
… appPackage=ch.app.android.next
… appActivity=ch.app.MasterActivity
… automationName=UiAutomator2
… autoGrantPermissions=${True}
… adbExecTimeout=150000
… avdLaunchimeout=150000
… uiautomator2ServerInstallTimeout=150000
… uiautomator2ServerLaunchTimeout=150000
… skipDeviceInitialization=${True}
… deviceOrientation=portrait
… skipUnlock=${True}
bi.Sleep 2s