Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Socket Timeout Exception in InvokeHTTP request even after setting timeout to 0 sec

Socket Timeout Exception in InvokeHTTP request even after setting timeout to 0 sec

New Contributor

Hi ,

Im not able to get back response from invoke http it always says java.net.socket exception .Is this flow correct ?Im making a call to http handler it will inturn invoke a url with headers sent by http handler ,the invoke http method (the request url )returns a status code .But im also getting socket time out exception .I even tried setting both read timeout and other timeout as zero second but it didnt work it always goes to failure ,Also i tried calling the url from postman it works fine (it gives back response code 200)..I wanted to know what mistake im making ,can pls someone guide if the flow is correct or not .In Invoke processor im just adding the remote url no other changes ,in update attribute im changing mime type to application/json.Pls help

33400-nifi.jpg

5 REPLIES 5

Re: Socket Timeout Exception in InvokeHTTP request even after setting timeout to 0 sec

@Darshan V S

What does the configuration of the InvokeHttp processor look like?

Re: Socket Timeout Exception in InvokeHTTP request even after setting timeout to 0 sec

New Contributor

Thank you for your quick reply @Wynnernifi1.jpgnifi2.jpg.Please Find the Attached Images ,I also have tried giving timeout as zero seconds for both but still didnt work always goes to failure

Re: Socket Timeout Exception in InvokeHTTP request even after setting timeout to 0 sec

New Contributor

@Wynner can you please help ?Stuck at this for 2 days ,invoke http is giving socket timeout/connection time out exception ,but works fine with local service call,We have already changed timeout to 0seconds but it still gives same exception .Please help

Re: Socket Timeout Exception in InvokeHTTP request even after setting timeout to 0 sec

@Darshan V S

The flow file contents are included as the body of the request when the HTTP method is POST. What is in the body of your flow files?

Highlighted

Re: Socket Timeout Exception in InvokeHTTP request even after setting timeout to 0 sec

New Contributor

Not sure, if this was resolved. I am facing the same issue in 1.8. I have set invokeHTTP timeout to 15 minutes. But still, it is failing with timeout.