Layer7 API Management

Expand all | Collapse all

"500 internal error" & "Assertion falsified" when Trying API

Jump to Best Answer
  • 1.  "500 internal error" & "Assertion falsified" when Trying API

    Posted 03-16-2017 12:06 PM
      |   view attached

    Hi,

    From API Portal /  “Documentation” Tab, I'm trying the basic "Math" API (that was created by CA team support for testing), and I get "500 internal error" and "Assertion falsified" as policy result ; see attached screenshot.

    Note that to try the "Math" API, I did the following : from API Portal /  “Documentation”  / “Math”  / "Math/Add"  

    and I entered  2 figures then clicked and on “Try it “   

     

    Please advice how to progress, to solve this.

    Thanks,

    Corinne

    Attachment(s)

    pptx
    500internalerror.pptx   186K 1 version


  • 2.  Re: "500 internal error" & "Assertion falsified" when Trying API

    Posted 03-16-2017 06:38 PM

    Hi Corinne,

    That indicates the /Math api could have problem, review the ssg log or audit event viewer should give you more details about the problem.

     

    It's better to open a support ticket to review the policy and logs.

     

    Regards,

    Mark



  • 3.  Re: "500 internal error" & "Assertion falsified" when Trying API

    Posted 03-17-2017 07:21 PM

    Hi ,

    In audit, I can see

    "WARNING

    API Portal Integration Service [/portalman/*]

    Message was not processed: Authentication Failed (402) 

    Not sure how to conclude.

     

    Note :  in the portal , the Math API appears in the "Documentation" Tab , but not in the "APIs & Plans" Tab

     

     

    Thanks for your feeback and support.

    Corinne



  • 4.  Re: "500 internal error" & "Assertion falsified" when Trying API
    Best Answer

    Posted 03-19-2017 09:40 PM

    Hi Corinne,

    I was wondering if the portal is configured properly to integrate with gateway, the document here,

    4. Connect the API Portal to the Gateway - CA API Developer Portal - 3.5 - CA Technologies Documentation 

    talking about few "Sync" buttons on CMS, click those buttons and ensure all return HTTP 200.

    If any problem of "Sync", that means portal cannot connect to gateway properly, you may have to check the integration steps again and see where is the problem.

     

    Regards,

    Mark



  • 5.  Re: "500 internal error" & "Assertion falsified" when Trying API

    Posted 03-20-2017 05:49 AM

    HI,

    When clicking on "Sync API Plans" as suggested, I get a failure message, as shown below. I understand that it means portal cannot connect to gateway properly and that integration steps need to be checked. (correct? ) These steps were done by CA team support guy, if I understand properly. I'm not sure if he can help. I will check and come back to you.

    Thanks,

    failure when sync API Plans



  • 6.  Re: "500 internal error" & "Assertion falsified" when Trying API

    Posted 03-20-2017 06:29 PM

    Yes, definitely something wrong with the integration. Please double check every step of the integration. 



  • 7.  Re: "500 internal error" & "Assertion falsified" when Trying API

    Posted 03-17-2017 03:10 PM

    Corinne,

    Have you tried using the Service Debugger

    Or
    You can also add the Customize SOAP Fault Response assertion, edit the assertion and select Full Details, check Use SOAP Fault for all errors.



  • 8.  Re: "500 internal error" & "Assertion falsified" when Trying API

    Posted 03-17-2017 07:27 PM

    Hi,

    I tried Service Debugger or to add the assertion mentioned above , but I 'm not yet comfortable on how to use it and to conclude.

    Let me know if any suggestions.

    Thanks

    Corinne



  • 9.  Re: "500 internal error" & "Assertion falsified" when Trying API

    Posted 03-23-2017 06:38 AM

    Hi Corinne,

    At this stage, I suggest a new CA support  case be open to further troubleshoot.

    Regards

    Seenu Mathew