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.

.manage().logs().get("server") returns null

See original GitHub issue

The 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] [BaseDriver] Retrieving 'server' logs
[debug] [BaseDriver] Retrieving supported log types
[debug] [MJSONWP] 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:closed
  • Created 6 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Mar 15, 2018
0reactions
lock[bot]commented, Aug 12, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

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