O365 Graph API call email upload attachment interface timeout

Xiao, Kevin 0 Reputation points
2024-05-23T01:27:37.0966667+00:00

During the process of calling Graph API to upload email attachments, an occasional timeout occurred. The server is on Azure in China. Please help us find out the cause of the problem.

upload start time: 2024-05-22 18:03:02 SGT

upload end time: 2024-05-22 18:03:42 SGT

duration: 40732ms

出现的时间节点User's image

Request URL: https://outlook.office365.com/api/gv1.0/users('xxxx')/messages('xxxxx')/AttachmentSessions('AAMkADg1MTZlYWExLTYwNjgtNDgzNC05YjZjLTA2M2I2MGY0ZjYzMgBGAAAAAADM7DgUM3PTSo4BhbvTxAx9BwBlJlmubLtCQLwoxdc5WoQYAAAAAAEBAABlJlmubLtCQLwoxdc5WoQYAAIzxp1qAAA=')?authtoken=eyJhbGciOiJSUzI1NiIsImtpZCI6IlVJdVhSeE9SOU1QNUtXa1d3NGtUK2ZhZElkST0iLCJ0eXAiOiJKV1QiLCJ4NXQiOiJmS3hsVGM2cDR0cjA1SVBtbzZkcDcwWFMxRkEifQ.eyJvaWQiOiI1YjJlMDU1Zi1hMjFjLTQzOTAtYTU0ZS1jZDdjODBhYTM0NzAiLCJ2ZXIiOiJSZXNvdXJjZUxvb3BiYWNrLlVzZXIuVjEiLCJzY3AiOiJBdHRhY2htZW50U2Vzc2lvbi5Xcml0ZSIsInJzY29wZWxlbiI6IjQ2MiIsInJlc291cmNlX3Njb3BlIjoie1wiVVJMXCI6XCJpaHA2M2lCY2lrZFo0NGdBeVA2YW1DV1FhZFo3b0JRMWZPdmp5L0VsdDFjPVwifSIsImNvcnJpZCI6IjRiYmFlMTMxLTFlMWYtNzYxMy0zY2EyLWIwM2Y1ZjJiMDY3NSIsImFwcGlkIjoiMDAwMDAwMDMtMDAwMC0wMDAwLWMwMDAtMDAwMDAwMDAwMDAwIiwiYXBwaWRhY3IiOiIwIiwidGlkIjoiMzU5NjE5MmItZmRmNS00ZTJjLWE2ZmEtYWNiNzA2Yzk2M2Q4IiwiaWF0IjoxNzE2MzcyMTgxLCJuYmYiOjE3MTYzNzIxODEsImV4cCI6MTcxNjM4Mjk4MSwiaXNzIjoiaHR0cHM6Ly9yZXNvdXJjZS5zZWxmLyIsImF1ZCI6Imh0dHBzOi8vb3V0bG9vay5vZmZpY2UuY29tL2FwaS8ifQ.q04UAoobl1GKddQPjyK2fBx9m0PKa5_Thv2Hn_QDHMTrgyBwj9S-ByyfwHXyBGHhuivL5_LgM9biFHbcq_qfnMrm77uaEuipcRj9ww_6iULarv7zorHvPBHeIeWIqYp_Ml7CeLhs6EsPfuUtVUMDdRE0VRUoErxZ2cxwBoIvAZOq4P3N6yl4wO1VUM6xLLYghb6DsksLNzKeKGkGWbHQ-ZJcrWD-h12-6KuBGEIwbIi4Vvxwp73_qCOzpCoyjCnSFzRqRmPFPqRTebwqoJ7gApDu1TDf1SmuLkewi4c-fsbaIMaMP5B4PB_cbZ_Gr5bR6mkGSuiyC0QIjoKO0azkQg

 

stack:

java.net.SocketTimeoutException: timeout
at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.java:656)
at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.java:664)
at okhttp3.internal.http2.Http2Stream$FramingSink.emitFrame(Http2Stream.java:572)
at okhttp3.internal.http2.Http2Stream$FramingSink.write(Http2Stream.java:543)
at okio.ForwardingSink.write(ForwardingSink.java:35)
at okhttp3.internal.http.CallServerInterceptor$CountingSink.write(CallServerInterceptor.java:149)
at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:179)
at okio.RealBufferedSink$1.write(RealBufferedSink.java:201)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126)
at com.microsoft.graph.http.CoreHttpProvider$1.writeTo(CoreHttpProvider.java:340)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:72)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at com.microsoft.graph.httpcore.RedirectHandler.intercept(RedirectHandler.java:137)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at com.microsoft.graph.httpcore.RetryHandler.intercept(RetryHandler.java:177)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at com.microsoft.graph.httpcore.AuthenticationHandler.intercept(AuthenticationHandler.java:57)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at com.microsoft.graph.httpcore.TelemetryHandler.intercept(TelemetryHandler.java:68)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain$original$gChlBUwS(RealCall.java:250)
at okhttp3.RealCall.getResponseWithInterceptorChain$original$gChlBUwS$accessor$BE2P2D5R(RealCall.java)
at okhttp3.RealCall$auxiliary$NNjs4Pcf.call(Unknown Source)
at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:86)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java)
at okhttp3.RealCall.execute$original$gChlBUwS(RealCall.java:93)
at okhttp3.RealCall.execute$original$gChlBUwS$accessor$BE2P2D5R(RealCall.java)
at okhttp3.RealCall$auxiliary$d2ZE4TVV.call(Unknown Source)
at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:86)
at okhttp3.RealCall.execute(RealCall.java)
at com.microsoft.graph.http.CoreHttpProvider.sendRequestInternal(CoreHttpProvider.java:407)
at com.microsoft.graph.http.CoreHttpProvider.send(CoreHttpProvider.java:225)
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,552 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.