Conversion results in Amazon S3 exception while using Internal storage configuration

Doc to Docx conversion results in Amazon S3 exception while using Internal storage configuration:

"AmazonS3 Storage exception: The specified key does not exist. Bucket ‘groupdocs.cloud-filestorage-prod’, FilePath ‘{path}/test1.doc’

@henrylynch33

We use Amazon S3 for GroupDocs internal storage, so you are getting the exception from Amazon S3. Please double check the file path/availability; it will resolve the issue.

@tilal.ahmad
I don’t see any setting regarding Internal Storage other than “Name”, “Storage mode” and “Regex to retain files forever”.
Please advise where to locate “path/availability”.

My php code using SDK

   $this->app->singleton(ConvertApi::class, function () {
        $configuration = new Configuration();
        $configuration->setAppSid(config('services.group-docs.app-id'));
        $configuration->setAppKey(config('services.group-docs.secret-key'));
        $configuration->setApiBaseUrl(config('services.group-docs.api-url'));
        return new ConvertApi($configuration);
    });

/**
 * @param File $file
 * @return string
 */
public function convertToDocx(File $file): string
{
    $settings = new ConvertSettings();
    $settings->setFilePath($file->getRealPath());
    $settings->setFormat("docx");

    $request = new ConvertDocumentRequest($settings);
    $response = $this->convertApi->convertDocument($request);

    dd($response);
}

I think i found the solution, thanks

1 Like

@henrylynch33

It is good to know that you have managed to resolve your issue. Please feel free to contact us for any further assistance.

Do you mind sharing your solution? I’m running into a similar issue.

Hi, @JustynLee , please create a new topic and share your request/SDK code and error message, Thanks!