I have webAPI in Instance A expecting a small set of json payload(4-5 field), nothing crazy.
I have Integration build on Instance B to call the WebApi of instance A. Passed the API keyfrom Instance A as needed to instance B.
WebAPI --> API Key --> Integration etc.
I am receiving weird error, looks like some authentication issue but is coming in HTML format and could not get more info from logs either.
Saying JSON is invalid but JSON is valid.
Can someone please help me on this?
HTML error received:
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <script>document.addEventListener('DOMContentLoaded', function () {document.forms[0].submit()})</script> </head> <body> <noscript> <p> <strong>Note:</strong> Since your browser does not support JavaScript, you must press the Continue button once to proceed. </p> </noscript> <form action="https://vanguardesf.oktapreview.com/app/vanguardesf_bp1appiansandbox_3/exky5y0oiyfLhd2Yl0h7/sso/saml" method="post"> <div> <input type="hidden" name="SAMLRequest" value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHNhbWwycDpBdXRoblJlcXVlc3QgQXNzZXJ0aW9uQ29uc3VtZXJTZXJ2aWNlVVJMPSJodHRwczovL3Zhbmd1YXJkLXByZGltc3N0YWdpbmcuYXBwaWFuY2xvdWQuY29tL3N1aXRlL3NhbWwvQXNzZXJ0aW9uQ29uc3VtZXIiIERlc3RpbmF0aW9uPSJodHRwczovL3Zhbmd1YXJkZXNmLm9rdGFwcmV2aWV3LmNvbS9hcHAvdmFuZ3VhcmRlc2ZfYnAxYXBwaWFuc2FuZGJveF8zL2V4a3k1eTBvaXlmTGhkMllsMGg3L3Nzby9zYW1sIiBJRD0iX2VjODM1OTQyLWUxYWEtNDlkZC1iMjU5LTAwMDE2ZDBhN2MyOCIgSXNzdWVJbnN0YW50PSIyMDI0LTA4LTA3VDE0OjIxOjMwLjk0M1oiIFByb3RvY29sQmluZGluZz0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOmJpbmRpbmdzOkhUVFAtUE9TVCIgUHJvdmlkZXJOYW1lPSJodHRwczovL3Zhbmd1Y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250ZXh0Q2xhc3NSZWY+PC9zYW1sMnA6UmVxdWVzdGVkQXV0aG5Db250ZXh0Pjwvc2FtbDJwOkF1dGhuUmVxdWVzdD4="/> </div> <noscript> <div> <input type="submit" value="Continue"/> </div> </noscript> </form> </body> </html>
WebApi from Instance A:
Integration calling above WebAPI:
Connected system called inside integration:
Discussion posts and replies are publicly visible
This happens when your credentials are wrong. I think your header name is wrong. Check the documentation here: https://docs.appian.com/suite/help/24.2/Web_API_Authentication.html#authentication
Thanks for responding Stefan.
Header name is correct. This is related to this issue --> KB-1975 Web API calls return unexpected results after enabling SAML authentication - Appian Knowledge Base - Support - Appian Community
The documentation does not mention the header "client-secret". Are you sure this is the correct name?
I am receiving same error even if i pass "Appian-API-Key" for header