Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Curl with ExecuteStreamCommand

avatar
Contributor

Hello everyone,

I need help for a curl call with the Execute Stream Command processor. I can't use the invoke http processor because I need to bypass the SSL certificate check. the following request is made. 

MarioFRS_0-1705325180917.png

Command Arguments

--location;--insecure;--request;POST;--header;'Content-Type: application/json';--data-raw;'{\"username\": \"xxx\",\"password\": \"xxx\"}';https://99.9.99.999:8091/auth

If i run the processor, i get the following output

Attribute Values
execution.command
curl
 
execution.command.args
--location;--insecure;--request;POST;--header;'Content-Type: application/json';--data-raw;'{\"username\": \"xxx\",\"password\": \"xxx\"}';https://99.9.99.999:8091/auth
 
execution.error
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 101 100 59 100 42 253 180 --:--:-- --:--:-- --:--:-- 433
 
FlowFile Content
Bad Auth Request: Expecting value: line 1 column 1 (char 0)
 
Does anyone have any idea how I can fix this? When I execute the command via the command line, I get the expected response.
 
Thanks
1 REPLY 1

avatar
Super Collaborator

Have you tried not escaping you " with \" in your command line arguments?