Layer7 API Management

 View Only

API Portal Integration Assertion Creates false warning "Cannot find ApiKey"

  • 1.  API Portal Integration Assertion Creates false warning "Cannot find ApiKey"

    Posted Oct 20, 2019 03:55 AM
    Hi,

    We are using  Gateway 9.4 & Portal 4.2. When we add "API Portal Integration - API Key" Assertion to API, It creates a false audit as below. Though the API Key exists. Also it doesn't stop the policy & hence there is no impact on actual API Call. 

    20191020 10:32:10.116 WARNING 4 Cannot find ApiKey with key=l70********************6e.  Exception caught!

    On debugging, We found that this audit is generated by "Manage API Portal Resources" assertion. Below are the variables generated by this assertion.

    pman.resUri = {String} "/1/api/keys/l70********************6e"
    pman.resp.detail = {String} "Cannot find ApiKey with key=l70********************6e"
    pman.resp.status = {Integer} "404"

    Can some one help me to find out the reason for this failure?

    Note: The API key used is correct. Same API Key is being used in "Lookup API Key" assertion as well & is able to find the API Key.

    ------------------------------
    Thanks & Regards !
    Suhas M V 
    ------------------------------