.manage().logs().get("server") returns null
See original GitHub issueThe problem
Doing
driver.manage().logs().get("server");
Returns error:
org.openqa.selenium.UnsupportedCommandException: malformed response to remote logs command
And on logs it appears:
[debug] [35m[BaseDriver][39m Retrieving 'server' logs
[debug] [35m[BaseDriver][39m Retrieving supported log types
[debug] [35m[MJSONWP][39m Responding to client with driver.getLog() result: null
Environment
- Appium version (or git revision) that exhibits the issue: 1.8.0-beta3
- Desktop OS/version used to run Appium: Windows
- Mobile platform/version under test: Tried Android 8 & Android 6 (Logs from this one)
- Real device or emulator/simulator: Real Device
- Java Client: 6.0.0-BETA4
Link to Appium logs
https://gist.github.com/tfcardoso/4d246282814a95452d62e2a7324554de
Code To Reproduce Issue [ Good To Have ]
Set<String> logTypes = driverA.getDriver().manage().logs().getAvailableLogTypes();
LogEntries logEntries = driverA.getDriver().manage().logs().get("server");
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Selenium C# GetLog returns NullReferenceException
var browserLogs = Driver.Manage().Logs.GetLog(LogType.Browser);. This used to return any console log entries but now I get the following ...
Read more >How to manage SQL Server logs effectively - SQLShack
This article will show ways to effectively Manage your SQL Server Logs.
Read more >Server script include returning null - ServiceNow Community
I changed the code to use .getValue() and null is still getting returned to the client script. The logs show that the server...
Read more >org.openqa.selenium.logging.Logs java code examples
How to obtain native logger in Selenium WebDriver. Logs logs = driver.manage().logs(); LogEntries logEntries = logs.get(LogType.
Read more >Error handling - Apollo GraphQL Docs
To help with debugging, Apollo Server provides an ApolloServerErrorCode enum, which you can use to check if your error is one of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/appium/appium-android-driver/pull/341 should do the job
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.