Appian Web API call from external system throws 500 error

Hello All, 

We are trying to call appian web-api from  node.js application. When we tried to call the same webapi from postman it is working fine, however when i try to call it from node.js it is failing with 500 error(error: Sorry, your request cannot be processed) . This error is not user specified. We tried searching through server.log, web-api-details.csv , we couldnt find anything. 

1) Did anyone has faced this issue?

2) Do anyone know if we can see the payload which we receive into appian ?

3) what are all the scenarios for which appian will throw 500 error ?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Hi,
    Generally, there are two reasons in Appian to throw a 500 error for Web API's:
    1. If there is any error in your web API expression.
    2. if the result of your Web API expression is not an HTTP Response Object.
    But since it is working fine with postman. So the two options does not apply to your case.
    The only probable cause could be that node.js might require a Standard Form Based Login instead of a HTTP basic authentication. So you might need to set up a SSO(Single Sign On) between Appian and your node.js server.
    Another cause could be 'Cross Origin Requests'. You might need to configure the Allowed Origins in Admin Console for your node.js server to make a cross origin request to Appian.
Reply
  • 0
    Certified Lead Developer
    Hi,
    Generally, there are two reasons in Appian to throw a 500 error for Web API's:
    1. If there is any error in your web API expression.
    2. if the result of your Web API expression is not an HTTP Response Object.
    But since it is working fine with postman. So the two options does not apply to your case.
    The only probable cause could be that node.js might require a Standard Form Based Login instead of a HTTP basic authentication. So you might need to set up a SSO(Single Sign On) between Appian and your node.js server.
    Another cause could be 'Cross Origin Requests'. You might need to configure the Allowed Origins in Admin Console for your node.js server to make a cross origin request to Appian.
Children
No Data