WARNING 157 com.l7tech.server.policy.assertion.ServerAuditDetailAssertion: -5: Invalid sync response

book

Article ID: 132080

calendar_today

Updated On:

Products

CA API Developer Portal CA API Gateway

Issue/Introduction

API Gateway 9.3
API Portal 4.2

The following error is output frequently.
2019-04-03T20:41:01.327-0700 WARNING 157 com.l7tech.server.policy.assertion.ServerAuditDetailAssertion: -5: Invalid sync response 
2019-04-03T20:41:01.330-0700 WARNING 157 com.l7tech.server: Executing background policy for scheduled task Portal Sync API
Why is that?

Environment

Release:
Component: APIPRD

Resolution


The message is a warning although not very good warning the log entry (Invalid sync response) is not an actual failure. It just means that there was an empty sync response. The empty sync response occurs when there is nothing to sync. 

The problem is simply that this log entry has too high of a severity, and there is no policy handling a blank response vs a failed response. The workaround was provided to lower the severity of this specific audit entry from WARNING to INFO to reduce the excessive entries seen in the logs. 

The current workaround is as follows: 

I was able to suppress this in my lab environment by changing the offending "Add Audit Detail" assertion from WARNING to INFO. Here are the steps: 

1. From within Policy Manager, open the "Portal Sync API" policy. 
2. Find the assertion that is: "Add Audit Details: "Invalid sync response" (this was line 32 in my policy). 
3. Open the assertion, and set the Level to INFO. Click OK. 
4. Save and activate your policy