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
this.Logger.LogInformation("Failed to execute the Open API operation '{operationId}' at '{uri}'. The remote server responded with a non-success status code '{statusCode}'.",this.Operation.OperationId,response.RequestMessage!.RequestUri,response.StatusCode);
310
+
this.Logger.LogError("Failed to execute the Open API operation '{operationId}' at '{uri}'. The remote server responded with a non-success status code '{statusCode}'.",this.Operation.OperationId,response.RequestMessage!.RequestUri,response.StatusCode);
thrownewNotSupportedException($"Failed to find a serializer for the specified media type '{mediaType}'");
317
+
if(string.IsNullOrWhiteSpace(mediaType))this.Logger.LogWarning("Failed to determine the response's content type. Assuming {json}",MediaTypeNames.Application.Json);
318
+
varserializer=this.SerializerProvider.GetSerializersFor(mediaType).FirstOrDefault()??thrownewNotSupportedException($"Failed to find a serializer for the specified media type '{mediaType}'");
thrownewHttpRequestException($"Failed to execute the operation activity '{this.Operation.OperationId}' (id: '{this.Activity.Id}'): No service available",null,HttpStatusCode.ServiceUnavailable);
325
+
output??=new();
326
+
if(!success)thrownewHttpRequestException($"Failed to execute the operation activity '{this.Operation.OperationId}' (id: '{this.Activity.Id}'): No service available",null,HttpStatusCode.ServiceUnavailable);
0 commit comments