We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

"Method Not Allowed" Error when Downloading File

I have been using the same code for a couple months and now all of the sudden it isn’t working to download a ppt i have in storage.

import asposeslidescloud
import shutil

from asposeslidescloud.apis.slides_api import SlidesApi

slides_api = SlidesApi(None, "xxxx", "xxxx")
temp_path = slides_api.download_file("1.pptx", "internal")

shutil.copyfile(temp_path, "testting.pptx")

Here is the ouptut i keep getting this error no matter the file.

Traceback (most recent call last):
  File "c:\Users\minah\Documents\checkBox\testing.py", line 8, in <module>
    temp_path = slides_api.download_file("1.pptx", "internal")
  File "C:\Python310\lib\site-packages\asposeslidescloud\apis\slides_api.py", line 11336, in download_file
    (data) = self.download_file_with_http_info(path, storage_name, version_id, **kwargs)  # noqa: E501
  File "C:\Python310\lib\site-packages\asposeslidescloud\apis\slides_api.py", line 11404, in download_file_with_http_info
    return self.api_client.call_api(
  File "C:\Python310\lib\site-packages\asposeslidescloud\api_client.py", line 352, in call_api
    return self.__call_api(resource_path, method,
  File "C:\Python310\lib\site-packages\asposeslidescloud\api_client.py", line 130, in __call_api
    response_data = self.__call_api_with_refresh(
  File "C:\Python310\lib\site-packages\asposeslidescloud\api_client.py", line 177, in __call_api_with_refresh
    raise ex
  File "C:\Python310\lib\site-packages\asposeslidescloud\api_client.py", line 167, in __call_api_with_refresh
    raise ex
  File "C:\Python310\lib\site-packages\asposeslidescloud\api_client.py", line 151, in __call_api_with_refresh
    return self.request(method, url,
  File "C:\Python310\lib\site-packages\asposeslidescloud\api_client.py", line 375, in request
    return self.rest_client.GET(url,
  File "C:\Python310\lib\site-packages\asposeslidescloud\rest.py", line 255, in GET
    return self.request("GET", url,
  File "C:\Python310\lib\site-packages\asposeslidescloud\rest.py", line 244, in request
    raise ApiException(http_resp=r)
asposeslidescloud.rest.ApiException: (405)
Reason: Method Not Allowed
HTTP response headers: HTTPHeaderDict({'Date': 'Sun, 26 Feb 2023 21:10:58 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'Server': 'Kestrel', 'Allow': 'POST', 'Strict-Transport-Security': 'max-age=2592000'})
HTTP response body: Method Not Allowed

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-1712

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.

Our developers have resolved the issue you encountered. Please check the problems on your side.