API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  uncaught-error "AssemblyRateLimitError"

    Posted Mon April 10, 2023 07:55 PM

    Hi team.

    Error cases supported by assembly catches

    Ibm remove preview
    Error cases supported by assembly catches
    Several error cases that can be returned by the assembly are available to the catch function.
    View this on Ibm >

    Hi team.
    I'm trying to capture the error that occurs when the API call limit is reached.
    In the documentation it appears that with API Gateway I can capture the events with the catch AssemblyRateLimitError
    but it doesn't work, I always get the API Connect error and I need to have a custom error.

    I need all of your help

    Always the error is 
    {"httpCode":"429","httpMessage":"Too Many Requests","moreInformation":"Assembly Rate Limit exceeded"}



    ------------------------------
    Oscar Gonzalez
    ------------------------------


  • 2.  RE: uncaught-error "AssemblyRateLimitError"

    Posted Tue April 11, 2023 06:01 AM

    Hi,

    I didn't test it myself yet, but just to be sure you are using API Gateway and not V5C?

    If V5C check e.g. https://www.ibm.com/support/pages/capture-429-error-when-rate-limit-exceeds-plan-ibm-api-connect





    ------------------------------
    Jeroen Willems
    Integration Architect - Managing Partner
    Integration Designers
    ------------------------------



  • 3.  RE: uncaught-error "AssemblyRateLimitError"

    Posted Tue April 11, 2023 10:14 AM

    I am using API Gateway in V10. I test with 10.0.4 in kubernetes and the saas version wih aws in trial mode.  But is not working.



    ------------------------------
    Oscar Gonzalez
    ------------------------------



  • 4.  RE: uncaught-error "AssemblyRateLimitError"

    Posted Thu April 13, 2023 04:03 PM

    Can you show us a debug log of a single transaction that hits the rate limit?
    Are there any errors like: Cannot find the assembly error rule for xxx?

    can you show us the generated config or your yaml?



    ------------------------------
    Matthias Siebler
    MA
    ------------------------------



  • 5.  RE: uncaught-error "AssemblyRateLimitError"

    Posted Fri April 14, 2023 01:29 PM

    Hi Oscar,

    If you're using the API Gateway, you'll need to catch this is a post-error global policy, and when you do, you'll need to use the context.get('error') object to get the status code and reason phrase and reset the message.status.statusCode as this is reset when you catch any exception.

    Regards,

    Steve



    ------------------------------
    Steve Linn
    Senior Consulting I/T Specialist
    IBM
    ------------------------------



  • 6.  RE: uncaught-error "AssemblyRateLimitError"

    Posted Mon April 24, 2023 12:09 PM

    Hi Steve... Thanks for you reply. Do you have any example for do this. ? The customer also ask me to catch the oauth error. I think that is the same. 



    ------------------------------
    Oscar Gonzalez
    ------------------------------