microsoft / Partner-Center-Java

Partner Center SDK for Java
https://docs.microsoft.com/java/partnercenter/
31 stars 12 forks source link

Intermittent socket timeout issue while making calls from Australia #134

Open YixiuJiang opened 4 years ago

YixiuJiang commented 4 years ago

Steps to reproduce

partnerOperations .getProducts().byCountry(country).byId(productId).getSkus().byId(sku).getAvailabilities() .byTargetSegment(segment).get();

What steps can reproduce the defect?

Make a get availabilities API call, got socket timeout exception after 2 mins

Please share the setup, sample project, version of Java etc. Java 8

Expected behavior

Share the expected output

Should return API response within 10s as this is a get call. Is there a way to set timeout threshold to 10s and also could you please implement retry?

Actual behavior

What is the behavior observed?

Diagnostic logs

Please share test platform diagnostics logs.
The logs may contain test assembly paths, kindly review and mask those before sharing.

Environment

Please share additional details about your environment. Version

msize commented 4 years ago

It is not an issue of the API library. It is an issue of the Partner Center back-end. Retry handling should be implemented on the client-side in your application.

YixiuJiang commented 4 years ago

Understood, is there a way to change socket timeout from 2 mins to 10s?