-
Notifications
You must be signed in to change notification settings - Fork 19
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
findValueForJsonPath always returns 'path can not be null or empty' #115
Comments
Hi, thanks for reporting the issue. Is there any chance to get a more complete stacktrace ? I can't do much with what you've provided, it doesn't even show from where the exception is thrown. |
one strong possibility though : for the However, for please give it a try and let me know if that helps |
Thanks! Changing propertyName to jsonPath did get met one step further. I'm able to find some basic values. Trying to search for these vales:
Returns the following error:
Attached is an example of the file I'm crawling When evaluating the jsonPath @ https://jsonpath.com/ - the correct values are being returned. |
I think the problem is that your jsonpath expression returns an array of 1 String, not a String see https://stackoverflow.com/questions/23608050/getting-a-single-value-from-a-json-object-using-jsonpath : it seems to be a common issue with JsonPath ! I've committed a fix, you can build the latest version locally to try without waiting for the next release |
Trying to build, but it seems some dependencies are missing?
Trying to build github-crawler/github-crawler-starter using: When changing the versions in github-crawler-starter/pom.xml from 2.1.1-SNAPSHOT to 2.1.0 the build completes succesful. But - of course - without the latest update. |
you need to build it from the root (github-crawler, not github-crawler/github-crawler-starter), so that it builds all the modules, including the github-crawler-starter.jar you need that will be in github-crawler-starter/target folder |
Unfortunately no succes:
|
looks like you're not building it with JDK 11, while you should |
Thanks! Fixed. findValueForJsonPath returns correct values. Awesome! |
Summary
We're crawling all our repo's to find version numbers of certain packages.
Console logs 'processing repo ... xyz' for all repos so we are connected to Github.
When using findPropertyValueInYamlFile (for another property). Parsing works as expected:
When using findValueForJsonPath, an error is returned:
error:
Type of Issue
It is a :
Your Environment
The text was updated successfully, but these errors were encountered: