Error: AmazonS3 exception: Error 'The specified key does not exist


#1

I am new to ASPOSE Products.

My code is:

$omr = new Aspose\Omr\Api\OmrApi($appKey, $appSid);
$response = $omr->postRunOmrTask(" ans.txt “, “GenerateTemplate”);
file_put_contents(time().”.response.txt", $response);

I am getting following error:

Fatal error : Uncaught exception ‘Aspose\Omr\ApiException’ with message '[404] Client error: POST [https://api.aspose.cloud/v1.1/omr/ans.txt/runOmrTask?actionName=GenerateTemplate](https://api.aspose.cloud/v1.1/omr/ans.txt/runOmrTask?actionName=GenerateTemplate) resulted in a 404 Not Found response: {“Message”:"AmazonS3 exception: Error ‘The specified key does not exist.’, Bucket ‘afc-filestorage’, FilePath '82741/189 (truncated…) ’

Please tell me what should I place in ans.txt file

Why is this error coming?


#2

This topic has been moved to the related forum: https://forum.aspose.cloud/t/error-amazons3-exception-error-the-specified-key-does-not-exist/3540


closed #3