添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hello,

My spring boot application deployed in Azure Spring Cloud is executing requests against the Graph API using the Java microsoft-graph SDK 3.2.0

All requests for sites, drives, driveitems are successful both locally on Windows 10 workstation and in Azure Spring Cloud container (JDK version 8 and 11)
but requests for driveitem contents specifically fail when executed in a deployed container due to "Caused by: java.io.EOFException: SSL peer shut down incorrectly".
The same code is able to retrieve the driveitem contents from my local Windows 10 workstation.

Our app is using TLS 1.2

The graphServiceClient object is a singleton.

Below are two attempts to retrieve document contents using the SDK - with the asynch the error occurs when getting the InputStream

// Async
CompletableFuture<InputStream> inputStreamFuture = graphServiceClient.
sites(siteId).
drives(driveId).
items(itemId).
content().
buildRequest().
getAsync();
inputStream = inputStreamFuture.get(TIMEOUT, TimeUnit.SECONDS);

// Sync
DriveItem driveItem = graphServiceClient.
sites(siteId).
drives(driveId).
items(itemId).
buildRequest().
get();

Any assistance or guidance with this issue is appreciated.

Thank you

Issue was resolved.

Finally identified that various other hosts were available in the firewall rules but Sharepoint is not.

The connection refusal at the firewall was hidden by the SSL error message and was also not visible in application insights.