You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_logger?.LogRequest(new[]{$"Calling {request.Url} before waiting for the Retry-After period.","Request will be throttled",$"Throttling on {throttler.ThrottlingKey}"},MessageType.Failed,newLoggingContext(e.Session));
59
+
varmessageLines=new[]{$"Calling {request.Url} before waiting for the Retry-After period.","Request will be throttled.",$"Throttling on {throttler.ThrottlingKey}."};
@@ -82,7 +83,7 @@ private void UpdateProxyResponse(ProxyRequestArgs e, ThrottlingInfo throttlingIn
82
83
newGraphErrorResponseError
83
84
{
84
85
Code=newRegex("([A-Z])").Replace(HttpStatusCode.TooManyRequests.ToString(), m =>{return$" {m.Groups[1]}";}).Trim(),
85
-
Message=BuildApiErrorMessage(request),
86
+
Message=BuildApiErrorMessage(request,message),
86
87
InnerError=newGraphErrorResponseInnerError
87
88
{
88
89
RequestId=requestId,
@@ -98,5 +99,5 @@ private void UpdateProxyResponse(ProxyRequestArgs e, ThrottlingInfo throttlingIn
98
99
e.ResponseState.HasBeenSet=true;
99
100
}
100
101
101
-
privatestaticstringBuildApiErrorMessage(Requestr)=>$"Some error was generated by the proxy. {(ProxyUtils.IsGraphRequest(r)?ProxyUtils.IsSdkRequest(r)?"":String.Join(' ',MessageUtils.BuildUseSdkForErrorsMessage(r)):"")}";
0 commit comments