Selenium: Unable to determine type from: U. Last 1 characters read: U

441 views
Skip to first unread message

Manoj Kumar

unread,
May 25, 2020, 1:58:13 AM5/25/20
to Selenium Users
Getting below error for Microsoft Edge browser in Selenium.

Exception in thread "main" org.openqa.selenium.WebDriverException: Unable to parse remote response: Unknown error
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:115)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:141)
at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:96)
at Driver.Test.Edgbrowser.main(Edgbrowser.java:16)
Caused by: org.openqa.selenium.json.JsonException: Unable to determine type from: U. Last 1 characters read: U
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'YOGA', ip: '192.168.1.131', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '14.0.1'
Driver info: driver.version: EdgeDriver
at org.openqa.selenium.json.JsonInput.peek(JsonInput.java:122)
at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:140)
at org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:126)
at org.openqa.selenium.json.Json.toType(Json.java:69)
at org.openqa.selenium.json.Json.toType(Json.java:55)
at org.openqa.selenium.json.Json.toType(Json.java:50)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:112)
... 9 more

Unable to determine type from U.JPG

Ankit Mundra

unread,
May 25, 2020, 4:44:18 AM5/25/20
to Selenium Users
Hi Manoj

I checked your screenshot and the exception stacktrace and corresponding code, don't seem to be in sync. It says issue occurred at line 16. Which is a blank line. Can you please provide correct code and respective stack trace. Also, check for the encoding of the file and white space characters.

Regards
Ankit Mundra

Vikash Agrawal

unread,
Feb 11, 2021, 10:42:17 PM2/11/21
to Selenium Users
HI Manoj, Did you find the solution to this problem ?
Reply all
Reply to author
Forward
0 new messages