API Connect

 View Only
  • 1.  gateway extension for apic-default-parsesettings

    Posted 14 days ago

    Hello Everyone,

    Although we have configured the parse settings in the API assembly with the maximum size, the request is still failing due to the "maximum document size exceeded" error. This transaction is not even reaching API Connect Analytics. Therefore, we configured apic-default-parsesettings with the maximum size, and after republishing the product, the apic-default-parsesettings values remain the same with the maximum size. However, the request is still failing with the same "document size exceeded" error, and it refers to the default 4MB limit.
     
    Can anyone help with how to define the extension for parse settings? It seems that the current approach is not working. Where can we verify that the parse settings were successfully updated?




    {
       "apigw": {
           "_global": {
               "override": [
                   "proxy http://test-dev/* proxy.dev 443",
                   "parse-settings apic-default-parsesettings"
               ]
           }
       }
    }



    ------------------------------
    Kumar
    ------------------------------


  • 2.  RE: gateway extension for apic-default-parsesettings

    Posted 14 days ago

    @Steve Linn

    Hello Steve,

    Could you please help us with the  creation of extension for apic-default parse settings ?



    ------------------------------
    Kumar
    ------------------------------



  • 3.  RE: gateway extension for apic-default-parsesettings

    Posted 14 days ago
    Edited by Kumar . 14 days ago

    Hello All,

    We could able to create the extension for parse -settings.

    https://www.ibm.com/docs/en/api-connect/10.0.5.x_lts?topic=manifest-gwd-extension-type

    Thank you



  • 4.  RE: gateway extension for apic-default-parsesettings

    Posted 7 days ago

    Hi Kumar,
    I'm officially retired now from IBM and don't have an API Connect or associated DataPower instance to assist, but in this case, I believe your Gateway Extension gwd type json is incorrect, You have

    {
       "apigw": {
           "_global": {
               "override": [
                   "proxy http://test-dev/* proxy.dev 443",
                   "parse-settings apic-default-parsesettings"
               ]
           }
       }
    }

    but the max doc size for the default apic-default-parsesettings object has not been changed.  Please see https://www.ibm.com/docs/en/api-connect/10.0.5.x_lts?topic=manifest-gwd-extension-type  which has an example of how to make a change to this object.  I believe your proxy override to the API Gateway object is fine, but I don't believe the update to the API Gateway parse settings reference is required??? You do need to add the update to the parse settings object itself, something like 

    {
       "parse-settings":{
          "_global":{
             "override":[
                "document-size 4194304"   <===== Make this whatever size you need as the maximum of apic-default-parsesettings.
             ]
         }
       },
       "apigw": {
           "_global": {
               "override": [
                   "proxy http://test-dev/* proxy.dev 443",
                   "parse-settings apic-default-parsesettings"
               ]
           }
       }
    }

    Best Regards,
    Steve Linn



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