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.

InvokeHTTP PATCH method does not include the Flowfile Content as Request Body

InvokeHTTP PATCH method does not include the Flowfile Content as Request Body

Contributor

I have an InvokeHTTP processor and the REST endpoint it calls requires PATCH method. However, when we send the FlowFile (we get the authentication part OK), we are getting:

31383-patch-no-payload.jpg

method PATCH must have a request body


For the InvokeHTTP processor, I'm pretty sure that the we configured the Send Message Body to true (which is the default) and Content-Type as application/json.

31384-invokehttp-send-msg-body.png

We enabled the endpoint to accept POST request, for the sake of testing and we've got the JSON payload accepted. So I wonder if there is an issue if we use PATCH.

1 REPLY 1

Re: InvokeHTTP PATCH method does not include the Flowfile Content as Request Body

Are you sure that the flow files that are failing have content?

You can right-click on the failure queue and perform a listing, then look at the content of one of the flow files and verify it has the data you expect.

I looked at the code of InvokeHttp and it does the exact same thing for PUT, POST, and PATCH regarding the body of the message.