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

Free Support Forum - aspose.com

How to configure Aspose cloud storage, and how to ensure the folder and out_path when use SDK?

Hi everyone!
I first use Aspose to convert .dwg file to .png file by python SDK. But it can’t work and throw ApiException as following, and I doubt that error file path cause it.

raise ApiException(

asposecadcloud.rest.ApiException: (‘404 Error connecting to the API https://api.aspose.cloud/v3.0/cad/HPB11.dwg/saveAs/png; Message: Not Found’, 404, {‘code’: ‘errorItemNotFound’,
‘description’: ‘Operation Failed. Item Not Found.’,
‘inner_error’: None,
‘message’: 'The storage myStorage was not found or is not associated with the ’

My code as follows.

import os
from asposecadcloud import CadApi
import asposecadcloud.models.requests as requests

app_sid = ‘xxx’
app_key = ‘xxx’
base_url = ‘https://api.aspose.cloud/
api_version = ‘v3.0’
cad_api = CadApi(app_key=app_key, app_sid=app_sid, base_url=base_url, api_version=api_version)

request = requests.GetDrawingSaveAsRequest(name=‘HPB11.dwg’, output_format=‘png’, folder=’./input/HPB11.dwg’, out_path=’./output/HPB11.png’, storage=‘myStorage’)

My storage layout as follows.
storage1.png (16.9 KB)
storage2.png (19.3 KB)

Could I trouble you to solve the above problem? Thanks!

This topic has been moved to the related forum: https://forum.aspose.cloud/t/how-to-configure-aspose-cloud-storage-and-how-to-ensure-the-folder-and-out-path-when-use-sdk/9593