DWF to DXF Conversion Authentication Error

I’m trying to convert DWF to DXF using Curl on https://api.aspose.cloud/v3.0/cad/Convert?outputFormat=DXF but keep getting error:
Operation Failed. The authorization data is incorrect.

How do I fix this issue?

1 Like

@yiliu77,
Hello,
we are already working on this issue, we are sorry for the inconvenience.

Hi,

Is there an update on this?

@yiliu77,
Hello,
not yet unfortunately. I will post update here once we have it.

@yiliu77,
Hi,
could you please test if the issue is resolved now?

I’m still getting the same error. This is the curl command I’m using

curl -X POST “https://api.aspose.cloud/v3.0/cad/Convert?outputFormat=DXF” -H “accept: application/json” -H “Authorization: Bearer ey…5w” -H “Content-Type: multipart/form-data” -H “x-aspose-client: Containerize.Swagger” -F “drawing”=“file.dwf”

@yiliu77,
could you please check if Bearer token generated from ‘https://id.aspose.cloud/connect/token’ resolves the issue?

Hey that resolved one of the issues. Now I’m getting an internal server error.
I’ve also tried the following code which also resulted in an internal server error

from asposecadcloud import CadApi
from asposecadcloud.models.requests import ConvertRequest
cad_api = CadApi(‘’, ‘’)
request = ConvertRequest(“floor.dwf”, “dxf”)
cad_api.convert(request)

@yiliu77,
please attach the initial DWF file here so we can test this internally.

See https://download.autodesk.com/us/samplefiles/acad/blocks_and_tables.dwf.

This is the error I keep seeing: (‘500 Error connecting to the API https://api.aspose.cloud/v3.0/cad/Convert?outputFormat=dxf; Message: Internal Server Error’, 500, None)

@yiliu77,
I can confirm the issue with this file, unfortunately, we have created CADCLOUD-512 to investigate and fix it.

@yiliu77,
Hello.
Please test if the issue is resolved now.