Hi @RaytheonXie_MSFT @CarlZhao-MSFT ,
Thank you very much for your support. Issue has been resolved now. Issue happened due to the proxy address, which is not allowing upload functionality alone. Now I changed to another proxy address and it's working fine in UNIX server
Issue in Graph API(java sdk) File upload in AIX server.
I'm facing issue in using Graph API (Java SDK) File upload in AIX server, which is working fine in Windows machine. I can see folder has been created, but files are not uploaded. Please find the error message given below.
Error Message:
[ForkJoinPool.commonPool-worker-2] INFO com.azure.identity.ClientSecretCredential - Azure Identity => getToken() result for scopes [https://graph.microsoft.com/.default]: SUCCESS
ERROR | 2022-08-01 10:15:38 | [main] service.MeddsSharePointFileUploadService (MeddsSharePointFileUploadService.java:176) - Request failed with error, retry if necessary.
com.microsoft.graph.core.ClientException: Request failed with error, retry if necessary.
at com.microsoft.graph.tasks.LargeFileUploadRequest.upload(LargeFileUploadRequest.java:100) ~[microsoft-graph-core-2.0.13.jar:?]
at com.microsoft.graph.tasks.LargeFileUploadTask.uploadAsync(LargeFileUploadTask.java:167) ~[microsoft-graph-core-2.0.13.jar:?]
at com.microsoft.graph.tasks.LargeFileUploadTask.upload(LargeFileUploadTask.java:255) ~[microsoft-graph-core-2.0.13.jar:?]
at com.stellantis.ame.medds.meddsSharepointUpload.service.MeddsSharePointFileUploadService.uploadFilestoSharePoint(MeddsSharePointFileUploadService.java:171) ~[MeddsReportsSharePointAPI-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
at com.stellantis.ame.medds.meddsSharepointUpload.service.MeddsSharePointFileUploadService.processSharePointFileUpload(MeddsSharePointFileUploadService.java:51) ~[MeddsReportsSharePointAPI-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
at com.stellantis.ame.medds.meddsSharepointUpload.main.MeddsSharePointFileUpload.main(MeddsSharePointFileUpload.java:20) ~[MeddsReportsSharePointAPI-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
Caused by: com.microsoft.graph.core.ClientException: Error executing the request
at com.microsoft.graph.http.CoreHttpProvider.sendRequestInternal(CoreHttpProvider.java:410) ~[microsoft-graph-core-2.0.13.jar:?]
at com.microsoft.graph.http.CoreHttpProvider.send(CoreHttpProvider.java:225) ~[microsoft-graph-core-2.0.13.jar:?]
at com.microsoft.graph.tasks.LargeFileUploadRequest.upload(LargeFileUploadRequest.java:98) ~[microsoft-graph-core-2.0.13.jar:?]
... 5 more
Caused by: java.io.IOException: Unexpected response code for CONNECT: 403
at okhttp3.internal.connection.RealConnection.createTunnel(RealConnection.kt:483) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.connection.RealConnection.connectTunnel(RealConnection.kt:262) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:201) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.10.0.jar:?]
at com.microsoft.graph.httpcore.RedirectHandler.intercept(RedirectHandler.java:137) ~[microsoft-graph-core-2.0.13.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.10.0.jar:?]
at com.microsoft.graph.httpcore.RetryHandler.intercept(RetryHandler.java:177) ~[microsoft-graph-core-2.0.13.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.10.0.jar:?]
at com.microsoft.graph.httpcore.AuthenticationHandler.intercept(AuthenticationHandler.java:57) ~[microsoft-graph-core-2.0.13.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.10.0.jar:?]
at com.microsoft.graph.httpcore.TelemetryHandler.intercept(TelemetryHandler.java:69) ~[microsoft-graph-core-2.0.13.jar:?]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) ~[okhttp-4.10.0.jar:?]
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154) ~[okhttp-4.10.0.jar:?]
at com.microsoft.graph.http.CoreHttpProvider.sendRequestInternal(CoreHttpProvider.java:407) ~[microsoft-graph-core-2.0.13.jar:?]
at com.microsoft.graph.http.CoreHttpProvider.send(CoreHttpProvider.java:225) ~[microsoft-graph-core-2.0.13.jar:?]
at com.microsoft.graph.tasks.LargeFileUploadRequest.upload(LargeFileUploadRequest.java:98) ~[microsoft-graph-core-2.0.13.jar:?]
Microsoft Security Microsoft Graph
1 answer
Sort by: Most helpful
-
SURESH BABU AYYAPPAN (EXTERNAL) 1 Reputation point
2022-08-03T10:22:51.49+00:00