Unable to generate OMR with API github solution

i try this file. but am not able to generate omr sheet.
exception in the line.( fileApi.UploadFile(new UploadFileRequest(fileName, stream)); )
Com.Aspose.Omr.Api.ApiException: ‘{“error”:“invalid_client”}’

@Veera127

The error message you’re encountering, Com.Aspose.Omr.Api.ApiException: '{"error":"invalid_client"}', typically indicates an issue with the authentication credentials being used in your API request. Here are some steps you can take to troubleshoot and resolve this issue:

  1. Check Client ID and Secret: Ensure that you are using the correct Client ID and Client Secret. These credentials are essential for authenticating your requests to the Aspose OMR API.

  2. Verify API URL: Make sure that the API URL you are using is correct. It should point to the appropriate endpoint for the Aspose OMR service.

  3. Authentication Method: Confirm that you are using the correct method for authentication. The API may require specific headers or parameters to be included in your requests.

  4. Review Example Code: You can refer to the example code provided in the Aspose OMR GitHub repository. For instance, the GenerateTemplateApiTests.cs file demonstrates how to set up the API client and make requests. Ensure that your implementation aligns with the examples provided [1].

  5. Check for Updates: If you are using an older version of the SDK, consider updating to the latest version, as there may have been bug fixes or changes that could resolve your issue.

  6. Consult Documentation: Review the official Aspose OMR documentation for any additional requirements or changes in the API that may affect your implementation.

If you continue to experience issues after checking these points, consider reaching out to Aspose support for further assistance.

Sources:
[1]: GenerateTemplateApiTests.cs

Hello, @Veera127

From the provided code line, I am assuming that you are using a Demo from “aspose-omr-cloud-dotnet\SDK” folder. This folder, as well as “aspose-omr-cloud-dotnet\Aspose.OMR.Client” depends on a deprecated version of API (3.0), that is no longer available.

I am sorry for the inconvenience, and we will work to make GitHub page more relevant.

I would advise using a Demo from “aspose-omr-cloud-dotnet\SDK v5.0” folder.

Also, I would like to mention that running a demo requires an additional submodule https://github.com/aspose-omr-cloud/aspose-omr-cloud-demo-data

To run repositories needed to be in the same folder:
“Projects/aspose-omr-cloud-demo-data”
“Projects/aspose-omr-cloud-dotnet”

and “Projects/aspose-omr-cloud-demo-data/test_config.json” must have a valid client_secret and client_id present.

These can be received after signing up Cloud - getting started.
There is a limited amount of free calls to API available.