UiAutomator2 not working

After upgrading from uiAutomator1 to uiAutomator2 my findElement, takeScreenshot no longer work…
I get Original error: Error: connect ECONNREFUSED

It works just find on automator1…

appium version in code 6.1.0
client appium version v1.13.0
AndroidUiautomator2Driver (v1.33.1)

This is the log when errors happens… When running from code
appium-server-logs.txt (36.9 KB)

When running from appium client side on inspector everything works fine… I checked the command for findElement and its the same.
appium-server-logs2.txt (41.4 KB)