Support Questions

Find answers, ask questions, and share your expertise

InvokeHTTP POST - Not receiving full data - Socket Closed

avatar
New Contributor

Hello All!

 

I am at my whits end trying to figure this one out.  I am using InvokeHTTP 1.15.2 and trying to send a largeish json content (300KB) to a python socket.  I am seeing super weird behavior where it doesnt send the whole packet content.  Like the JSON gets cut off.  I wrote a loop in python to continue to grab packets until the full data packet is received but the weirdest thing happens.  I get all of the data but then it routes to the Failed queue and I get an error message saying:

 

Routing to Failure due to exception: java.net.SocketTimeoutException: timeout: java.net.SocketException: Socket closed

 

I get the full contents of the flow file but it routes to error every time.  To try and remedy this, I tried increasing my buffer to more than enough and it still did the same error.  If I send a 200 response code as it is retrieving packets, it routes to success but doesnt receive the whole flow file contents.  I cannot figure this out. 

 

Does anyone have any tips or thoughts?

 

flameshot_2023-03-09_16-00.pngflameshot_2023-03-09_15-53_3.pngflameshot_2023-03-09_15-53_2.pngflameshot_2023-03-09_15-53_1.pngflameshot_2023-03-09_15-53.png

0 REPLIES 0