We’ve been experiencing issues with Aspose.Words.Cloud SDK since this morning. Impossible to do any mail merge. I’m not sure if your upload service or mail merge service is down. Here is the code we have been using for the past 2 years:
Aspose.Words.Cloud.Sdk.WordsApi wordsApi = new(clientId, clientSecret);
var uploadRequest = new UploadFileRequest();
uploadRequest.FileContent = // My file content
uploadRequest.Path = $"/Templates/random-user-id/MailMergeTemplate.dotx";
await wordsApi.UploadFile(uploadRequest);
It seems that you are encountering an issue with the Aspose.Words.Cloud SDK where the error message indicates that the specified file does not exist during the upload process. This can often be related to the file path or the content being uploaded.
Here are a few steps you can take to troubleshoot and resolve the issue:
Verify File Content: Ensure that the FileContent you are trying to upload is not null or empty. If the content is not being set correctly, the upload will fail.
Check File Path: Make sure that the path you are using in the UploadFileRequest is correct. The path should include both the folder and the file name. For example:
Error Handling: Implement error handling to capture any exceptions that may provide more insight into the issue. This can help you identify if the problem is with the upload service or the file itself.
Review Similar Issues: There have been similar reports where users faced issues with file uploads. In one case, it was noted that an empty value for the file path parameter caused a server error. Ensure that you are providing a valid path and filename in your request.
Sample Code: If the issue persists, consider sharing your complete MailMerge sample code with the support team for further assistance. This can help them replicate the issue and provide a more accurate solution.
If you continue to experience problems, it may be beneficial to check the status of the Aspose services or reach out to their support for further assistance.
Here is my response to the automated bot just in case it can help:
Verify File Content : I can confirm that FileContent is not null or empty. Can’t expose the entire source code but it’s properly sent and we haven’t made any update to the procedure since July 2023 (as per git history). Also, even after uploading the file manually to the dashboard’s file storage, any subsequent mail merge requests fail (Error while loading file)
Please help. We have been generating documents without a problem for a few months. We have also started receiving unexpected errors from the Aspose API service.
Error received when downloading a file:
Raw response for the API Status code 400 { “Error”: { “Code”: “error”, “Message”: “AmazonS3 Storage exception: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.”, “Description”: “Exception of type ‘Amazon.Runtime.Internal.HttpErrorResponseException’ was thrown.” }, “RequestId”: “ec36704ef89c695bb777684d17702bfe” }
Error when merging email:
Raw response for the API Status code 404 { “Error”: { “Code”: “ErrorItemNotFound”, “Message”: “Error while loading file ‘/templates/a4/cover.docx’ from storage. The specified file does not exist.”, “Description”: “Operation Failed. File Not Found.” }, “RequestId”: “ff48fae172660d923f1ebaff008c7a44” }
We rolled back our latest release because something in AWSS3SDK started working differently in their latest version of the SDK, and we couldn’t test it because this issue is not reproducible in our current staging environment. So we will analyze and try to reproduce that issue on the updated staging environment.