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 responseTried 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
Discussion posts and replies are publicly visible
Hi abdul,that super hard to read. Can you post screenshots? perhaps this supports your case.And whats the overall scenario?
Hi, did you find the solution? I have the same issue.
Doy you see any error in logs? Probably the execution of the web api is raising an exception
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.
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...
Thank you, but I have no "System Logs" in the menu. I need to ask more privileges on Monday.
Regarding the inspection - yes appian version it is the problem. But I am still bit surprised that when I call the inspection from UI then I got error APNX-1-4154-001 and when I call the inspection via API then I got error APNX-1-4552-004. Do not understand why the errors are not the same...
Maybe because the last code refer the channel used for inspection.. 001-> UI / 005--> web api