We are getting the below error while calling var responseUpload = fileApi.UploadFile(wordfileRequest);
It is only on some servers. Can you provide any configurations we can check regarding this?
GroupDocs.Conversion.Cloud.Sdk.Client.ApiException: : Failed to read the request form. Reading the request body timed out due to data arriving too slowly. See MinRequestBodyDataRate.
at GroupDocs.Conversion.Cloud.Sdk.Client.RequestHandlers.ApiExceptionRequestHandler.ThrowApiException(HttpWebResponse webResponse, Stream resultStream)
at GroupDocs.Conversion.Cloud.Sdk.Client.RequestHandlers.ApiExceptionRequestHandler.ProcessResponse(HttpWebResponse response, Stream resultStream)
at System.Collections.Generic.List1.ForEach(Action
1 action) at GroupDocs.Conversion.Cloud.Sdk.Client.ApiInvoker.ReadResponse(WebRequest client, Boolean binaryResponse)
at GroupDocs.Conversion.Cloud.Sdk.Client.ApiInvoker.InvokeInternal(String path, String method, Boolean binaryResponse, String body, Dictionary2 headerParams, Dictionary
2 formParams, String contentType)
at GroupDocs.Conversion.Cloud.Sdk.Api.FileApi.UploadFile(UploadFileRequest request)
@flopez4
There could be different reasons for the error: the structure of the input document or some network issue. Please share some problematic input document(s) and also confirm which storage you are using for this purpose. We will try to reproduce the issue and investigate it.
symbol.ttf.zip (67.4 KB)
We use this Nuget package v21.4.1 : GitHub - groupdocs-conversion-cloud/groupdocs-conversion-cloud-dotnet: .NET SDK to work with the GroupDocs.Conversion Cloud API. Convert between 50+ document & image formats with zero initial cost.
Here is the code, error is at fileApi.UploadFile. We are uploading a font file. I had to add .zip to attach here.
var configuration = new Configuration(AppSettings.GroupDocsAppSID, AppSettings.GroupDocsAppKey);
var fileApi = new FileApi(configuration);
//Upload fonts
var fontFileName = System.IO.Path.Combine(AppSettings.SentinelResourcesFolder, "symbol.ttf");
using (var fileStream = File.OpenRead(fontFileName))
{
var wordfileRequest = new UploadFileRequest($"Fonts/{Path.GetFileName(fontFileName)}", fileStream);
var responseUpload = fileApi.UploadFile(wordfileRequest);
}
Looks like PUT to this endpoint may be causing the error https://api.groupdocs.cloud/v2.0/conversion/storage/file/{path}
@flopez4
I have tested the scenario using GroupDocs.Conversion Cloud SDK for .NET 23.4 and have not noticed any issues. Please upgrade your SDK version; the issue will be resolved.