I am using GCP Vision API since almost last 3 years and till few days before it was working correctly. But since last couple of days, I started getting below error.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Not sure why its failing. Need help to resolve it. Have valid Billing account and OAuth credentials json.
AnnotateImageRequest request = new AnnotateImageRequest()
.setImage(new Image().encodeContent(image))
.setFeatures(ImmutableList.of(new Feature().setType("LOGO_DETECTION").setMaxResults(MAX_RESULTS),
new Feature().setType("IMAGE_PROPERTIES").setMaxResults(MAX_RESULTS),
new Feature().setType("TEXT_DETECTION").setMaxResults(MAX_RESULTS)));
Vision.Images.Annotate annotate = vision.images()
.annotate(new BatchAnnotateImagesRequest().setRequests(ImmutableList.of(request)));
BatchAnnotateImagesResponse batchResponse = annotate.execute();
Getting above mentioned error on last line.