ExceptionFilter[0] api exception

I’m trying to setup a docker container and get a basic demo of the API on it working by converting a DOCX to a PDF and am getting this error when I try to execute it

fail: Aspose.Words.Cloud.WebApp.Filters.CoreResultExceptionFilter[0] api exception

the docker container is running in windows desktop, there is no setup for the user/password/keys as all I care about is proof of concepting it in its trial mode first

I need assistance troubleshooting/solving this

@celliott1542

It seems you are encountering an API exception while trying to convert a DOCX file to PDF in your Docker container setup. Here are some steps you can take to troubleshoot and potentially resolve the issue:

  1. Check API Key and Configuration: Ensure that your API key is correctly configured in your application. Even in trial mode, the API key is necessary for authentication. If you haven’t set it up yet, you can find instructions in the Aspose documentation on how to configure your API key.

  2. Review Docker Configuration: Make sure that your Docker container has the necessary permissions and network access to reach the Aspose API endpoints. Sometimes, network issues can lead to API exceptions.

  3. Inspect the Input Document: Verify that the DOCX file you are trying to convert is not corrupted and is in a valid format. You can test with a different DOCX file to see if the issue persists.

  4. Check Logs for Detailed Errors: Look at the logs generated by your application for more detailed error messages. The logs may provide additional context about the exception that can help in diagnosing the problem.

  5. Test with Sample Code: You can refer to sample code for converting documents using the Aspose API. For example, the following code snippet demonstrates how to convert a DOCX file to PDF:

    using System.IO;
    using Aspose.Words.Cloud.Sdk.Model;
    using Aspose.Words.Cloud.Sdk.Model.Requests;
    
    public async Task ConvertDocxToPdf()
    {
        using var requestDocument = File.OpenRead("path/to/your/test_multi_pages.docx");
        var request = new ConvertDocumentRequest(
            document: requestDocument,
            format: "pdf"
        );
        var actual = await this.WordsApi.ConvertDocument(request);
        // Handle the result as needed
    }
    
  6. Consult Documentation and Community: If the issue persists, consider checking the Aspose documentation or community forums for similar issues. Other users may have encountered the same problem and could have shared solutions.

If you continue to face difficulties, please provide more details about the error message or any logs you have, and I would be happy to assist further!

Here you can find how to setup docker container https://hub.docker.com/r/aspose/words-cloud