- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Socket Timeout Exception in InvokeHTTP request even after setting timeout to 0 sec
- Labels:
-
Apache NiFi
Created on ‎08-21-2017 09:23 PM - edited ‎08-17-2019 06:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎08-21-2017 10:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What does the configuration of the InvokeHttp processor look like?
Created ‎08-22-2017 07:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎08-23-2017 09:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
Created ‎08-28-2017 07:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Created ‎02-06-2019 05:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
