Intro to GraphQL with Java & DGS - Running query in Apollo Sanbox

I am trying the Intro to Java with DGS and Graph QL tutorial
When i am running the featuredListing query in the apollo explorer - sandbox I am getting the following error:

“errors”: [
{
“message”: “org.springframework.web.client.ResourceAccessException: I/O error on GET request for “http://localhost:4010/featured-listings”: null”,
“locations”: ,
“path”: [
“featuredListings”
],
“extensions”: {
“errorType”: “INTERNAL”
}
}
],
“data”: null
}
Its a connect refused error in the sprintboot console Caused by: java.net.ConnectException: null

How do I correct this?

Hi @mshah100, it looks like you have an error because the Subgraph is attempting to reach out to the file system or network and reaching error on your local system.

If you want to take a look at the complete code you can checkout the final branch in github: GitHub - apollographql-education/odyssey-intro-dgs at final

I figured this. The schema file was not saved