I am working on a spring boot project with gradle that calls an external graphQL service using GraphQLHTTP Client. For this, I imported the following dependency in my build.gradle:
implementation group: ‘com.graphql-java-generator’, name: ‘graphql-java-client-dependencies’, version: ‘2.3.1’
However, when I try to hit any endpoint (API) upon addition of above dependency, I am getting 401 Unauthorized error.
I am using java11 and spring boot version is 2.6.6