Hi Kanapriya,

Not sure and we need to further investigate this.

We do this via comparing headers when sending directly and via ESB. Then we
can manually add/remove one by one and find the root cause.

On Thu, Jun 8, 2017 at 4:59 PM, Kanapriya Kuleswararajan <[email protected]
> wrote:

> Hi All ,
>
> I have checked the JIRA [1] and tried with freshdesk connector to resolve
> the issue.
> The FreshDesk API Endpoint can be invoked directly. But I'm getting
> anonymous endpoint error  when I tried the endpoint via the ESB.
>
> It seems IP address and the port are appended with the host. What could be
> the reason ?
>
> Please find the simplified  proxy configuration [2] and the error [3] of
> the request.
>
> [1] https://wso2.org/jira/projects/ESBCONNECT/issues/ESBCONNECT-166
> [2]
> <?xml version="1.0" encoding="UTF-8"?>
> <proxy xmlns="http://ws.apache.org/ns/synapse
> <http://www.google.com/url?q=http%3A%2F%2Fws.apache.org%2Fns%2Fsynapse&sa=D&sntz=1&usg=AFQjCNHXEm-DVy-kXjma9HiDSOzvmv4DoA>
> "
>       name="sample"
>       startOnLoad="true"
>       statistics="enable"
>       trace="enable"
>       transports="http">
>   <target>
>      <inSequence>
>         <property name="messageType" scope="axis2"
> value="application/json"/>
>         <property xmlns:ns="http://org.apache.synapse/xsd
> <http://www.google.com/url?q=http%3A%2F%2Forg.apache.synapse%2Fxsd&sa=D&sntz=1&usg=AFQjCNHFBE5d7rSVgszJpW_f9GbBWTHLMA>
> "
>                   expression="fn:concat('Basic ', '
> MFNsWkhRbnI1NkN0cmdsTENNZGU6WA==')"
>                   name="Authorization"
>                   scope="transport"/>
>         <call>
>            <endpoint>
>               <http method="GET"
>                     uri-template="https://kana.freshdesk.com/api/v2/
> companies/31000002315
> <https://www.google.com/url?q=https%3A%2F%2Fkana.freshdesk.com%2Fapi%2Fv2%2Fcompanies%2F31000002315&sa=D&sntz=1&usg=AFQjCNE6O0m8WtZeuosTCx9-N0Dp5Mg_pw>
> "/>
>            </endpoint>
>         </call>
>         <respond/>
>      </inSequence>
>      <outSequence/>
>   </target>
>   <description/>
> </proxy>
>
> [3]
>
> [2017-06-08 16:39:21,804]  INFO - ProxyService Successfully created the
> Axis2 service for Proxy service : sample
> [2017-06-08 16:39:26,874] DEBUG - wire HTTP-Listener I/O dispatcher-2 >>
> "GET /services/sample HTTP/1.1[\r][\n]"
> [2017-06-08 16:39:26,874] DEBUG - wire HTTP-Listener I/O dispatcher-2 >>
> "Host: kanapriya-thinkpad-t540p:8280[\r][\n]"
> [2017-06-08 16:39:26,874] DEBUG - wire HTTP-Listener I/O dispatcher-2 >>
> "Connection: keep-alive[\r][\n]"
> [2017-06-08 16:39:26,874] DEBUG - wire HTTP-Listener I/O dispatcher-2 >>
> "Cache-Control: no-cache[\r][\n]"
> [2017-06-08 16:39:26,874] DEBUG - wire HTTP-Listener I/O dispatcher-2 >>
> "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML,
> like Gecko) Chrome/51.0.2704.63 Safari/537.36[\r][\n]"
> [2017-06-08 16:39:26,875] DEBUG - wire HTTP-Listener I/O dispatcher-2 >>
> "Postman-Token: 12391c14-b6f4-8ac2-7c88-6e00f9e80d0a[\r][\n]"
> [2017-06-08 16:39:26,875] DEBUG - wire HTTP-Listener I/O dispatcher-2 >>
> "Accept: */*[\r][\n]"
> [2017-06-08 16:39:26,875] DEBUG - wire HTTP-Listener I/O dispatcher-2 >>
> "Accept-Encoding: gzip, deflate, sdch[\r][\n]"
> [2017-06-08 16:39:26,875] DEBUG - wire HTTP-Listener I/O dispatcher-2 >>
> "Accept-Language: en-US,en;q=0.8[\r][\n]"
> [2017-06-08 16:39:26,875] DEBUG - wire HTTP-Listener I/O dispatcher-2 >>
> "[\r][\n]"
> [2017-06-08 16:39:27,384]  WARN - TargetHandler Connection closed before
> sending request out  Remote Address : kana.freshdesk.com/52.72.32.65:443
> [2017-06-08 16:39:27,386]  INFO - EndpointContext Endpoint : AnonymousEndpoint
> with address https://kana.freshdesk.com/api/v2/companies/31000002315 has
> been marked for SUSPENSION, but no further retries remain. Thus it will be
> SUSPENDED.
> [2017-06-08 16:39:27,386]  WARN - EndpointContext Suspending endpoint :
> AnonymousEndpoint with address https://kana.freshdesk.com/
> api/v2/companies/31000002315 - current suspend duration is : 30000ms -
> Next retry after : Thu Jun 08 16:39:57 IST 2017
> [2017-06-08 16:39:27,387]  INFO - LogMediator To:
> https://kana.freshdesk.com/api/v2/companies/31000002315, MessageID:
> urn:uuid:06a1bcf5-e4a7-4212-a039-e9d552a6d3fc, Direction: request,
> MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 101505,
> ERROR_MESSAGE = Error in Sender, Envelope: <?xml version='1.0'
> encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.
> xmlsoap.org/soap/envelope/"><soapenv:Body/></soapenv:Envelope>
> [2017-06-08 16:42:27,055]  WARN - SourceHandler Connection time out after
> request is read: http-incoming-2 Socket Timeout : 180000 Remote Address : /
> 127.0.0.1:19323
>
>
> Thanks
> Kanapriya Kuleswararajan
> Software Engineer | WSO2
> Mobile : - 0774894438 <077%20489%204438>
> Mail : - [email protected]
> LinkedIn : - https://www.linkedin.com/in/kanapriya-kules-94712685/
> <https://www.linkedin.com/in/hariprasath-thanarajah-5234b660>
>



-- 

Best Regards,

Malaka Silva
Associate Director / Architect
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
https://store.wso2.com/store/

Don't make Trees rare, we should keep them with care
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to