Converting DWG to SVG in Node.js using Aspose.CAD REST API Throws 401 Error

Hi,

I am getting below error while converting .dwg file to .svg file

401 Error connecting to the API https://api.aspose.cloud/v3.0/cad/sample.dwg/saveAs/png; Message: Unauthorized, 401, None

Below is the code I am using:

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

# Get your Client ID and Client Secret at https://dashboard.aspose.cloud (free registration is required).
app_sid = 'xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx'
app_key = 'xxxxxxxxxxxxxxxxxxxxxx'
base_url = 'https://api.aspose.cloud'
api_version = 'v3.0'
# instantiate Aspose.CAD Cloud API
cad_api = CadApi(app_key=app_key, app_sid=app_sid, base_url=base_url, api_version=api_version)

# Convert DWG to PNG
convertDWGtoPNGRequest = requests.GetDrawingSaveAsRequest(name='sample.dwg', output_format='png', out_path='sample_cad.png', storage='MyDB_Storage')
cad_api.get_drawing_save_as(request=convertDWGtoPNGRequest)

@maheshbandi
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): CADCLOUD-488

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.