question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: io.appium.uiautomator2.common.exceptions.UiAutomator2Exception

See original GitHub issue

The problem

I try to interact element such as clicking but I got return 500 with error attached on gist. In some cases I can interact but only on this page I couldn’t do anything except getting the source.

Environment

  • Appium version appium@1.11.0-beta.3
  • Desktop OS/version used to run Appium: Mac OS
  • Node.js version v9.11.2
  • Npm or Yarn package manager: NPM
  • Mobile platform/version under test: Android
  • Real device or emulator/simulator: emulator
  • Appium CLI or Appium.app|exe: Appium CLI

Details

&{APPIUM_CAPS}      platformName=Android
...                 platformVersion=7.1.1
...                 udid=emulator-5554
...                 deviceName=emulator
...                 automationName=UiAutomator2
...                 appPackage=com.xxx.app.staging
...                 appActivity=com.xxx.app.home.HomeActivity
...                 newCommandTimeout=5000
...                 APPIUM_SERVER=http://0.0.0.0:4798/wd/hub
...                 ignoreUnimportantViews=true
...                 normalizeTagNames=true

Link to Appium logs

GIST Appium Log https://gist.github.com/nichotined/b6c98131d4246a6658065ac45b4ddfb4

Code To Reproduce Issue [ Good To Have ]

driver.find_element_by_xpath("//*[@text="xxx"]").click()

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
thougercommented, Aug 30, 2019

Thanks @nichotined ,it worked!

1reaction
mykola-mokhnachcommented, Mar 6, 2019

[WD Proxy] Got an unexpected response: {“sessionId”:“459c1392-3432-4fa8-836a-e9f873657d69”,“status”:13,“value”:"io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: Error on line 100: At line 100, column 54: not well-formed (invalid token). Try changing the ‘normalizeTagNames’ driver setting to ‘true’ in order to workaround…

Read more comments on GitHub >

github_iconTop Results From Across the Web

An unknown server-side error occurred ... - Appium Discuss
Original error : Could not find 'apkanalyzer.bat' in [“C:\Users\xxxx\AppData\Local\Android\Sdk\platform-tools\apkanalyzer.bat” ...
Read more >
An unknown server-side error occurred while processing the ...
An unknown server-side error occurred while processing the command. Original error: 'POST /element' cannot be proxied to UiAutomator2.
Read more >
An unknown server-side error occurred while processing the
I am Using 1.4.16.1 Version. I am also facing the sane issue. “An unknown server-side error occurred while processing the command”. Please give...
Read more >
An unknown server-side error occurred while processing the ...
I'm facing this issue intermittently while running my appium scripts in a real device. Every alternate execution fails for the below error.
Read more >
Server-side error: 500 occurred while processing Appium-server
Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found