Hi reader!
I configured an post API (whose purpose is to write in database from outside Appian) which works well when I test it inside Appian. When I try to invoke the API outside Appian (that is through PostMan), it throws Error 500 - Internal Server Error. I have used basic authentication in PostMan Authentication. The user possessing this credential, is being made as the Administrator of API, data store and other required objects.
Discussion posts and replies are publicly visible
A 500 error is not returned in case the authentication is wrong, but when the expression code in the API fails.
But the expression code works well when tested in Appian Environment.
Then there must be something you are doing wrong in the request payload, check that you are passing correct body and params. If it were an issue with the authentication then it would have given you 401 Unauthorized, but 500 simply means there is a problem with the expression in API, if you are using process model to Write in DSE then check for it's security also.
No, I'm simply using the In-Built Write to Data Store WebAPI. It works well when I test it in Appian but not from PostMan
Did you check the tomcat-stdout log file for any details? Did you make sure that the payload used in PostMan works when used in Appian?