Unable to generate OMR templete from aspose api

I’m just getting started with aspose omr and I’m unable to generate a template using the sample text markup from this page:

I copied the sample markup and placed it in text.txt file in my first storage in a folder named omr. Then I sent the request using POSTMAN to the following URL with my authorization header:
https://api.aspose.cloud/v3.0/omr/test.txt/runOmrTask?actionName=GenerateTemplate&folder=omr

The response I’m getting is:

{
    "requestId": "a85635a4-1c48-4ae4-8f65-9d7ab19c5472",
    "error": {
        "code": "error",
        "message": "One or more errors occurred. (Error making request with Error Code NotFound and Http Status Code NotFound. No further error information was returned by the service.) Error making request with Error Code NotFound and Http Status Code NotFound. No further error information was returned by the service.",
        "description": "Operation Failed. General Error.",
        "dateTime": "2022-08-15T08:48:45.8908397Z",
        "innerError": null
    }
}

What am I doing wrong here? Any help would be appreciated.

@dranique12345

I’m unable to notice any issue to generate a template from the above shared text file using cURL commands form the documentation. If you still facing the issue then please share your sample cURL command and credentials via a private message. We will look into the issue and will guide you.

# First get Access Token
# Get Customer Key and Customer ID from https://dashboard.aspose.cloud/
curl -X POST "https://api.aspose.cloud/connect/token" 
-d "grant_type=client_credentials&client_id=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxxx" 
-H "Content-Type: application/x-www-form-urlencoded" 
-H "Accept: application/json"

## Generate Template
curl -X POST "https://api.aspose.cloud/v3.0/omr/test.txt/runOmrTask?actionName=GenerateTemplate&folder=OMR" 
-H "accept: application/json" 
-H "authorization: Bearer eyJhbGciOiJSUzI1NiI.....t8ca5usG1EJxssIxBXBSA" 
-H "Content-Type: application/json" 
-d "{\"FunctionParam\": null, \"AdditionalParam\": null}"

Here’s my request CURL

    curl --location --request POST 'https://api.aspose.cloud/v3.0/omr/test.txt/runOmrTask?actionName=GenerateTemplate&folder=omr' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-aspose-client: Containerize.Swagger' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYi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djzJSAB5b4w7/TdcphdNHuEkteTuGcBCpNQ0XVbGuP77aeZu64FA+oy4LY8WR6zdhdBHIqI7ICdL' \
--data-raw '{}'

@dranique12345

It seems your omr folder does not include the test.txt file. Please upload the following file to the omr folder and test again.

test.zip (199 Bytes)