Skip to main content
New Participant
Feb 18, 2022 1:54 PM UTC
Question

Invoking Appian Rest API

Hi All,

While trying to invoke appian inspection API'S using curl command we are not getting the expected output instead we are getting error response
Tried same below api with postman and getting expected response but not with curl command. Can anyone help on this!

API :

curl -x 'http://XXXXXXXXXXXXXX:8080' --location --request \

POST 'ourappiansite/.../inspections' \

--header 'Appian-API-Key: ************************************’ \

--form 'json="{

\"packageFileName\": \" AppianApp.zip\",

\"customizationFileName\": \"Appianpropertyfile.properties\"

}"' \

--form 'zipFile=@"AppianApp.zip"' \

--form 'ICF=@"AppianApp.properties"'


Error Response:

{"resource":"\/suite\/deployment-management\/v1\/inspections","title":"An Error Has Occurred","error":"APNX-1-4552-004","message":"The request cannot be processed."}


Expected Response of Inspect API:

{

"uuid": "****************",

"url": "">oursite/.../****************************"

}

Thanks in advance

Regards

Abdul

7 replies

richardm900458
Inspiring
Feb 18, 2022 7:56 PM UTC

Hi abdul,
that super hard to read. Can you post screenshots? perhaps this supports your case.
And whats the overall scenario?

New Participant
Jun 8, 2024 12:14 PM UTC

Hi, did you find the solution? I have the same issue.

davidj137213
Brainy
Jun 8, 2024 2:22 PM UTC

Doy you see any error in logs? Probably the execution of the web api is raising an exception

New Participant
Jun 8, 2024 2:40 PM UTC

Hi, thank you for quick response. I don't see anything in the logs (I don't know where the logs are :)). However, when I try to inspect the package from the UI, I get a different error: APNX-1-4154-001 (The selected package was exported on version 24.2.195.0 and it cannot be imported or inspected on the older version 24.1.235.0.). It's strange that the inspection using the API and the UI gives different results.

davidj137213
Brainy
Jun 8, 2024 3:40 PM UTC

YOu  can fin logs here (System logs)

Once clicked, you will a list of files... open tomcat-stdout.logs look for the error , and paste it here

About inspection, it's because you've developed your package in an older version...