Is there a cloud problem.
For your info, we use below code
public async Task Convert(string fullQualifiedFileName, CancellationToken cancellationToken = default)
{
if (!File.Exists(fullQualifiedFileName))
throw new FileNotFoundException($“File not found: {fullQualifiedFileName}”);
using var timeoutCts = new CancellationTokenSource(TimeSpan.FromMinutes(1));
using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token);
CellsApi cellsApi = new CellsApi(_clientId, _clientSecret);
using var fileStream = File.OpenRead(fullQualifiedFileName);
var request = new PutConvertWorkbookRequest
{
File = new Dictionary<string, Stream> { { Path.GetFileName(fullQualifiedFileName), fileStream } },
format = "pdf",
onePagePerSheet = false, // generates multiple pages
checkExcelRestriction = false
};
Task<Stream> convertTask = cellsApi.PutConvertWorkbookAsync(request);
Task delayTask = Task.Delay(Timeout.Infinite, linkedCts.Token);
if (await Task.WhenAny(convertTask, delayTask) == delayTask)
throw new TimeoutException($"Excel to PDF conversion timed out for: {fullQualifiedFileName}");
var response = await convertTask; // already completed, no await penalty
var memoryStream = new MemoryStream();
await response.CopyToAsync(memoryStream, cancellationToken);
memoryStream.Position = 0;
return memoryStream;
}
@softsoluser
We have received your report and are currently investigating the issue. We will update you shortly with our findings.
@softsoluser
After testing, the API you mentioned is working correctly. Could you please provide more details about your environment and usage scenario? We will continue to investigate and update you if we find any issues.
@softsoluser Please provide your Client ID. We will search for call details in our system, analyze them, and provide you with a satisfactory response.
Client Id equals: e9ece7aa-858e-4a49-82e6-f153967785e7
Suddenly receiving timeouts on slide conversions endpoint too. Getting 0 bytes received after almost 10 minutes. Requests are not appearing api usage logs either.
@softsoluser Hello, we found the error message. Could you please tell us the file size and provide a test file to help us pinpoint the problem?
@kchoppin Hello, could you please provide the Client ID? We will retrieve the records to check if it’s the same issue.
ec243f7d-d60b-44b5-b98d-646fd0a34467
@kchoppin Hello, this record was not found at the moment. What was the specific endpoint URL you used?
@kchoppin Thank you for your reply. We are unable to check the status of the slides endpoint. I noticed you also posted about it in the slides thread; they will check for you as soon as they see it.
Good morning,
I checked this morning the concerning endpoint.
I concluded the endpoint now handles my request. Note that we didn’t any software changes!!
I must say, sinds yesterday morning concerning endpoint was very slow (about 30s for a conversion), but now this morning it seems that the endpoint handling is fast (< 15s).
For this moment my problems are solved & I will monitor it this day.
Thnks
@softsoluser You are welcome! If you have any issues, please feel free to contact us.