My integration object is calling the swagger endpoint multiple times when it is being failed. We have a log system in our SQL DB. When I test the endpoint from swagger, I am getting only one log but when I am I clicking on Test Request in the integration I am getting multiple logs
Discussion posts and replies are publicly visible
vijayp6380 said:when it is being failed
What is failing? Appian does automatic retry in certain situations.
when the swagger endpoint returns status code as 401, then I am getting multiple logs when I click Test request from Integration
Yeah, Appian might try a different authentication method.
If only one log is written in the database, the repeated calls are likely failing before they reach the logging logic. The clear solution is to check API server logs to trace all incoming requests, review Appian integration timeout/error settings, and fix the failure point causing retries. Also move the logging step to the start of the API flow so every request attempt gets captured.
Test Request internally makes multiple calls to the endpoint - one for validation/inspection and one for the actual request. If you're using OAuth 2.0, an additional retry happens on 401 to refresh the token and re-call. This is expected behavior.