<div dir="ltr">I can&#39;t remember if there is a way to configure per-API timeouts in the Gateway.<div><br></div><div>@marcsavy any thoughts on that?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 2, 2018 at 9:56 AM, Ashish Patel <span dir="ltr">&lt;<a href="mailto:ashish.patel@futuregroup.in" target="_blank">ashish.patel@futuregroup.in</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-8969025212226259107WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks Eric.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Yes, after bit diagnosing found that one of our production API source was down/timing out (we have set timeout in apiman config) as we got just too many hits
 for same API and this has caused Production APIMan Wildfly server also clogging other requests.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Though we resolved problem by solving thhe said Production API source – was wandering is that any way we can isolate the API response time issue only for the
 impacted API and not others (like in this case it impacted all API requests including from API Manager).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I could think of one option to resolve is to  configure low timeouts in apiman config and also specifying API specific timeout to override if required (like
 for said Production API the timeout was higher due to it’s a Legacy App). Will that be enough ? how can we do it in APIMan ? or any other suggestions ?<u></u><u></u></span></p><span class="">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Thanks &amp; Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Ashish Patel<u></u><u></u></span></p>
</span><p class="MsoNormal"><span lang="EN-IN" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">(M) <a href="tel:+91%2093270%2015128" value="+919327015128" target="_blank">+91 93270 15128</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> Eric Wittmann [mailto:<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.<wbr>com</a>]
<br>
<b>Sent:</b> Thursday, March 01, 2018 03:15<br>
<b>To:</b> Ashish Patel<br>
<b>Cc:</b> <a href="mailto:apiman-user@lists.jboss.org" target="_blank">apiman-user@lists.jboss.org</a><br>
<b>Subject:</b> Re: [Apiman-user] APIManager Prod issue help required<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">What&#39;s happening when you ask the API Manager for the endpoint is that the manager tries to make an HTTP connection to the Gateway that the API has been published to.  The assumption is that the Gateway knows its own external URL and is
 therefore the only party that can report it.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The error stack trace indicates that the HTTP connection between the manager and gateway resulted in a 502 error (Bad Gateway).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Has anything changed with your deployed Gateway?  Can you still publish APIs to that Gateway?  You could try going to the Gateway admin page and try &quot;testing&quot; the Gateway link from there.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">-Eric<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Feb 28, 2018 at 2:22 AM, Ashish Patel &lt;<a href="mailto:ashish.patel@futuregroup.in" target="_blank">ashish.patel@futuregroup.in</a>&gt; wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Issue help required: We are using APIMan 1.2.7 in production with Wildfly 10.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">In APIManager UI, I can see all API details, however whenever I click on Endpoin, I get below error. Even when I click on APIManager -&gt; ClientApp -&gt; click on APIs, it breaks with
 500 page error. Any help on this is highly appreciated.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">io.apiman.manager.api.rest.<wbr>contract.exceptions.<wbr>SystemErrorException: java.lang.RuntimeException: Failed to get the API endpoint: 502<u></u><u></u></p>
<p class="MsoNormal">                at io.apiman.manager.api.rest.<wbr>impl.OrganizationResourceImpl.<wbr>getApiVersionEndpointInfo(<wbr>OrganizationResourceImpl.java:<wbr>1937)<u></u><u></u></p>
<p class="MsoNormal">                at io.apiman.manager.api.rest.<wbr>impl.OrganizationResourceImpl$<wbr>Proxy$_$$_WeldClientProxy.<wbr>getApiVersionEndpointInfo(<wbr>Unknown Source)<u></u><u></u></p>
<p class="MsoNormal">                at sun.reflect.<wbr>NativeMethodAccessorImpl.<wbr>invoke0(Native Method)<u></u><u></u></p>
<p class="MsoNormal">                at sun.reflect.<wbr>NativeMethodAccessorImpl.<wbr>invoke(<wbr>NativeMethodAccessorImpl.java:<wbr>62)<u></u><u></u></p>
<p class="MsoNormal">                at sun.reflect.<wbr>DelegatingMethodAccessorImpl.<wbr>invoke(<wbr>DelegatingMethodAccessorImpl.<wbr>java:43)<u></u><u></u></p>
<p class="MsoNormal">                at java.lang.reflect.Method.<wbr>invoke(Method.java:498)<u></u><u></u></p>
<p class="MsoNormal">                at org.jboss.resteasy.core.<wbr>MethodInjectorImpl.invoke(<wbr>MethodInjectorImpl.java:139)<u></u><u></u></p>
<p class="MsoNormal">                at org.jboss.resteasy.core.<wbr>ResourceMethodInvoker.<wbr>invokeOnTarget(<wbr>ResourceMethodInvoker.java:<wbr>295)<u></u><u></u></p>
<p class="MsoNormal">                at org.jboss.resteasy.core.<wbr>ResourceMethodInvoker.invoke(<wbr>ResourceMethodInvok<u></u><u></u></p>
<p class="MsoNormal">….<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Caused by: java.lang.RuntimeException: Failed to get the API endpoint: 502<u></u><u></u></p>
<p class="MsoNormal">                at io.apiman.manager.api.gateway.<wbr>rest.GatewayClient.<wbr>getApiEndpoint(GatewayClient.<wbr>java:120)<u></u><u></u></p>
<p class="MsoNormal">                at io.apiman.manager.api.gateway.<wbr>rest.RestGatewayLink.<wbr>getApiEndpoint(<wbr>RestGatewayLink.java:156)<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-IN">Thanks &amp; Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-IN">Ashish Patel</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/apiman-user</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>