Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPServer: incorrectly parsing XPATH JSON error Dictionary as Array #430

Open
jmoody opened this issue Aug 29, 2018 · 1 comment
Open

LPServer: incorrectly parsing XPATH JSON error Dictionary as Array #430

jmoody opened this issue Aug 29, 2018 · 1 comment
Labels

Comments

@jmoody
Copy link
Contributor

jmoody commented Aug 29, 2018

# LPWebQuery
  
// When output is a JSON Dictionary
49  NSString *output = [webView calabashStringByEvaluatingJavaScript:jsString];

// query result is nil
 51 NSArray *queryResult = [LPJSONUtils deserializeArray:output];


CalWebView-cal[449]  DEBUG LPMapRoute:134 | Map POST, /map Parsed UIScript as
	(
	    "view:'WKWebView'",
	    "with xpath:'hr#green_stripe'"
	)
CalWebView-cal[449] DEBUG LPJSONUtils:107 | Unable to deserialize  
{
     "error":"Exception while running query: hr#green_stripe",
    "details":"Error: INVALID_EXPRESSION_ERR: DOM XPath Exception 51"
}
LPServer should detect this error and return an error result.
@jmoody jmoody added the bug label Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@jmoody and others