<div dir="ltr">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.<div><br></div><div>The error stack trace indicates that the HTTP connection between the manager and gateway resulted in a 502 error (Bad Gateway).</div><div><br></div><div>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.</div><div><br></div><div>-Eric</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 28, 2018 at 2:22 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="#0563C1" vlink="#954F72">
<div class="m_1692330499561229979WordSection1">
<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,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-IN">Ashish Patel<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/apiman-user</a><br>
<br></blockquote></div><br></div>