Closed ashu2121 closed 4 years ago
i tried changing the code like below to get getNode()
RetryHandler.exponentialBackoff(800, TimeUnit.MILLISECONDS, 1.2f)
.whenResponse(
response -> ((Storefront.Checkout) ((GraphResponse<Storefront.QueryRoot>)response).data().getNode()).getAvailableShippingRates().getReady() == false)
.maxCount(100)
.build()
But i m getting error Failed to execute GraphQL request, getNode on null reference
. Do anyone guide me what i m doing wrong?
thanks in advance.
actually getNode present in version 3.2.3. that's why i had to update the version to newer. Now everything works great. thanks
Hello I m new in GraphQL.
I have implemented library version: 3.2.3 in my project. I m trying to get shipping rate from api to display, code start giving me compile time error. I m using
pooling shipping rate api
.can anyone guide me on how to use a retry handler in pooling shipping rate api. Althuogh i can make another retry handler using this library. but it will cost resources and battery. Better i want to use a built-in retry handler.
thanks in advance