I am trying to execute the featuring listing query in Graph OS and getting the following error:
query GetFeaturedListings {
featuredListings {
id
title
numOfBeds
costPerNight
closedForBookings
}
}
Stack trace
{“errors”:[{“message”:“org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://rt-airlock-services-listing.herokuapp.com/featured-listings\”: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",“locations”:,“path”:[“featuredListings”],“extensions”:{“errorType”:“INTERNAL”}}],“data”:null}
Why am I getting a cert error.
You should verify that you can reach our test API via your computer. Your company may have some restrictions via your VPN or other network configuration. If you can perform the demo from the public internet you will have the best luck
https://rt-airlock-services-listing.herokuapp.com/featured-listings
The api call works when made directly but from the browser to s://rt-airlock-services-listing.herokuapp.com/featured-listings works only from the Apollo Graph OS I am getting the error
Hey there @mshah100 ! It looks like you might have already resolved this issue based on the comments you left in the tutorial. It was due to unsaved changes in the schema file.
Let us know if you come across any other issues, I’ll mark this issue solved!
This is not resolved. here is my git repo GitHub - mshah100/IntroGraphQLJavaDGS
Hey there @mshah100! Happy to help troubleshoot this with you - at what point in the tutorial are you seeing this error appear? Were you able to run queries locally and see data come back prior to this point?
1 Like
HI Liz,
Appreciate your help. I am at consuming the datasource part of the tutorial: Intro to GraphQL with Java & DGS
I have made the change and executing the GetFeaturedListing query from GraphOS and I am getting the abiove error. The heroku API works perfectly by itself.
Appreciate your help on this.