Error 405 Method Not Allowed in DELETE Call

Existing code been working for years; now giving error:405 Method Not Allowed;

Here is the stack trace:
PHP Fatal error: Uncaught Aspose\Slides\Cloud\Sdk\Api\ApiException: [405] Client error: DELETE https://api.aspose.cloud/v3.0/slides/storage/file/finalDecks%5Coutput_2023-02-23_14-20-08_u63f7bc686a130.pptx?storageName=emiaws resulted in a 405 Method Not Allowed response in /var/www/emi/composer/vendor/aspose/slides-sdk-php/sdk/Api/ApiBase.php:89
Stack trace:
#0 /var/www/emi/composer/vendor/aspose/slides-sdk-php/sdk/Api/SlidesApi.php(9122): Aspose\Slides\Cloud\Sdk\Api\ApiBase->httpCall(Object(GuzzleHttp\Psr7\Request))
#1 /var/www/emi/composer/vendor/aspose/slides-sdk-php/sdk/Api/SlidesApi.php(9108): Aspose\Slides\Cloud\Sdk\Api\SlidesApi->deleteFileWithHttpInfo(‘finalDecks\outp…’, ‘emiaws’, NULL)
#2 /var/www/emi/aspose/asposeFunctions.php(225): Aspose\Slides\Cloud\Sdk\Api\SlidesApi->deleteFile(‘finalDecks\outp…’, ‘emiaws’)
#3 /var/www/emi/aspose/asposeFunctions.php(300): aspDeletePresentation(Object(Aspose\Slides\Cloud\Sdk\Api\SlidesApi), ‘finalDecks/outp…’)
#4 /var/www/emi/aspose/aspGenerate.php(64): aspCreatePresen in /var/www/emi/composer/vendor/aspose/slides-sdk-php/sdk/Api/ApiBase.php on line 89

Fatal error: Uncaught Aspose\Slides\Cloud\Sdk\Api\ApiException: [405] Client error: DELETE https://api.aspose.cloud/v3.0/slides/storage/file/finalDecks%5Coutput_2023-02-23_14-20-08_u63f7bc686a130.pptx?storageName=emiaws resulted in a 405 Method Not Allowed response in /var/www/emi/composer/vendor/aspose/slides-sdk-php/sdk/Api/ApiBase.php:89
Stack trace:
#0 /var/www/emi/composer/vendor/aspose/slides-sdk-php/sdk/Api/SlidesApi.php(9122): Aspose\Slides\Cloud\Sdk\Api\ApiBase->httpCall(Object(GuzzleHttp\Psr7\Request))
#1 /var/www/emi/composer/vendor/aspose/slides-sdk-php/sdk/Api/SlidesApi.php(9108): Aspose\Slides\Cloud\Sdk\Api\SlidesApi->deleteFileWithHttpInfo(‘finalDecks\outp…’, ‘emiaws’, NULL)
#2 /var/www/emi/aspose/asposeFunctions.php(225): Aspose\Slides\Cloud\Sdk\Api\SlidesApi->deleteFile(‘finalDecks\outp…’, ‘emiaws’)
#3 /var/www/emi/aspose/asposeFunctions.php(300): aspDeletePresentation(Object(Aspose\Slides\Cloud\Sdk\Api\SlidesApi), ‘finalDecks/outp…’)

Has anything changed or do your servers need to be rebooted? I looked at our API log an this call isn’t showing up.

I’ll follow up with more details – but suspect it is at your end as we haven’t changed anything

Here is the call that is failing:

$slidesApi->deleteFile($file, "emiaws")

I’ve validated the AWS connection on Aspose *Storages/Edit Amazon S3 Storage" page and received “Valid connection”

Here is the request to function httpCall(Request $request) that is failing

    GuzzleHttp\Psr7\Request Object
    (
        [method:GuzzleHttp\Psr7\Request:private] => DELETE
        [requestTarget:GuzzleHttp\Psr7\Request:private] =>
        [uri:GuzzleHttp\Psr7\Request:private] => GuzzleHttp\Psr7\Uri Object
            (
                [scheme:GuzzleHttp\Psr7\Uri:private] => https
                [userInfo:GuzzleHttp\Psr7\Uri:private] =>
                [host:GuzzleHttp\Psr7\Uri:private] => api.aspose.cloud
                [port:GuzzleHttp\Psr7\Uri:private] =>
                [path:GuzzleHttp\Psr7\Uri:private] => /v3.0/slides/storage/file/finalDecks%5Coutput_2023-02-23_15-03-27_u63f7c68fce728.pptx
                [query:GuzzleHttp\Psr7\Uri:private] => storageName=emiaws
                [fragment:GuzzleHttp\Psr7\Uri:private] =>
            )

        [headers:GuzzleHttp\Psr7\Request:private] => Array
            (
                [Host] => Array
                    (
                        [0] => api.aspose.cloud
                    )

                [Authorization] => Array
                    (
                        [0] => Bearer --deleted for security--
                    )

                [x-aspose-client] => Array
                    (
                        [0] => php sdk v21.9.0
                    )

            )

        [headerNames:GuzzleHttp\Psr7\Request:private] => Array
            (
                [authorization] => Authorization
                [x-aspose-client] => x-aspose-client
                [host] => Host
            )

        [protocol:GuzzleHttp\Psr7\Request:private] => 1.1
        [stream:GuzzleHttp\Psr7\Request:private] =>
    )

And to check that it’s not a version issue, I tried to execute it on the Aspose.Slides Cloud API Reference site.

After authenticating I executed the following – see attached pix:

CURL
curl -X DELETE "https://api.aspose.cloud/v3.0/slides/storage/file/%2FfinalDecks%255Coutput_2023-02-23_15-03-27_u63f7c68fce728.pptx?storageName=emiaws" -H "accept: application/json" -H "authorization: Bearer --delete for security--" -H "x-aspose-client: Containerize.Swagger"

Request URL
https://api.aspose.cloud/v3.0/slides/storage/file/%2FfinalDecks%255Coutput_2023-02-23_15-03-27_u63f7c68fce728.pptx?storageName=emiaws

Server response: Code:
405
Undocumented
2023-02-23_15-25-45.png (118.6 KB)

It’s probably not an systemic AWS issue as the othee Aspose call are succeeding – as it appears that I can create/merger/output without issue.

@klubar,
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESCLOUD-1711

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

We are also getting same 405 Method Not Allowed in PUT file call (/slides/storage/file/{path}). I even tried in your Swagger UI and I see the same error:

CURL

curl -X PUT "https://api.aspose.cloud/v3.0/slides/storage/file/f9907de5-fe6f-436e-8b18-a73c7b397e2d.pptx?storageName=Enablix_Dev" -H "accept: application/json" -H "Content-Type: multipart/form-data" -H "x-aspose-client: Containerize.Swagger" -d {"file":{}}

Server response: Code :
405
Undocumented
aspose-issue.jpg (90.5 KB)

@enablix,
Thank you for the information. I forwarded it to our developers.

@klubar, @enablix,
Our developers have resolved the issues you encountered. Please check the problems on your side.

Thank you for getting this fixed.

It would be helpful if Aspose updated the status to show when the service is broken. The Aspose status is useless to current customers and misleading prospective customers, as the service can be broken (in this case for three days) and the status still shows green.

@klubar,

Do you mean this service?

Yes; the aspose cloud service was broken, see this thread, from at least Feb 23 2023 thru Feb 25 2023 and there was no update in the status for " Aspose.Slides Cloud API". In fact the last update for Slides Cloud was Dec. 1, 2021 — and it’s been down for us multiple times since then.

Why have a status page if the light is permanently stuck on “green” and not accurate?

@klubar,
Unfortunately, I don’t have an answer to your question. I will forward your information to our developers.

@klubar,
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SUP-1075

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.