Thanks Andy, What you mentioned perfectly makes sense.
We will try to add handleHTTPResponse along with handleHTTPRequest to establish the fact. I attached the logs in logs.zip file. Thanks and Regards, Rajesh Biswas | +91 9886433461 | <http://www.bridgera.com/> www.bridgera.com From: Andy LoPresto [mailto:alopre...@apache.org] Sent: Thursday, September 27, 2018 11:28 PM To: dev@nifi.apache.org Cc: kaushik.mon...@bridgera.com Subject: Re: Nifi Response Code Hi Rajesh, There are no logs attached (perhaps use gist.github.com and provide the links here). I think the issue might have been that HandleHttpRequest needs to be paired with HandleHttpResponse in order to generate a response to the client. You were making GET requests via the browser, a flowfile with no content was generated and passed to PutFile, but no response was sent back to the client, so a 503 error was generated. As you noted, ListenHTTPRequest doesn’t operate in this manner (it provides an HTTP response immediately), so you no longer have that error. Here is an example HandleHTTPRequest/HandleHTTPResponse article [1] if you want to revisit this. [1] https://community.hortonworks.com/articles/55080/create-a-restful-for-nifi-walmart-case-study.html Andy LoPresto alopre...@apache.org alopresto.apa...@gmail.com PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 On Sep 27, 2018, at 7:05 AM, Rajesh Biswas <rajesh.bis...@bridgera.com> wrote: Hello Andy, We have /Test in access URL, we are sending the data as HTTP POST request as <http://localhost:7001/test> http://localhost:7001/test URL We are using HandleHttpRequest processor with below configuration <image001.png> We are using below flow diagram to test the application: <image002.png> We are getting below error <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 503 Service Unavailable</title> </head> <body> <h2>HTTP ERROR 503</h2> <p>Problem accessing /test. Reason: <pre> Service Unavailable</pre> </p> <hr> <a href=" <http://eclipse.org/jetty> http://eclipse.org/jetty">Powered by Jetty:// 9.4.3.v20170317</a> <hr/> </body> </html> We observed there is one more flowfile created with 0 bites along with actual file <image003.png> Also we observed once we replace HandleHTTPRequest with ListenHTTPRequest processor we don’t see this error Please find the logs attached Thanks and Regards, Rajesh Biswas | +91 9886433461 | <http://www.bridgera.com/> www.bridgera.com From: Andy LoPresto [mailto:alopre...@apache.org] Sent: Wednesday, September 26, 2018 10:19 PM To: dev@nifi.apache.org Cc: kaushik.mon...@bridgera.com Subject: Re: Nifi Response Code Also, there is no resource for “/Test”. You should be accessing <http://your_host:8080/nifi> http://your_host:8080/nifi or <https://your_host:8443/nifi> https://your_host:8443/nifi. Andy LoPresto <mailto:alopre...@apache.org> alopre...@apache.org <mailto:alopresto.apa...@gmail.com> alopresto.apa...@gmail.com PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 On Sep 26, 2018, at 9:47 AM, Andy LoPresto < <mailto:alopre...@apache.org> alopre...@apache.org> wrote: Rajesh, You’ll need to look at the following log files to see what the actual cause of the issue is: * $NIFI_HOME/logs/nifi-bootstrap.log * $NIFI_HOME/logs/nifi-app.log Please share those contents (redacting sensitive information if necessary) if you need further help. The stacktrace should clearly explain the issue though, so hopefully this solves your problem. Andy LoPresto <mailto:alopre...@apache.org> alopre...@apache.org <mailto:alopresto.apa...@gmail.com> alopresto.apa...@gmail.com PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 On Sep 26, 2018, at 5:51 AM, Rajesh Biswas < <mailto:rajesh.bis...@bridgera.com> rajesh.bis...@bridgera.com> wrote: Hello NiFi Team, We are receiving HTTP 503 error after calling the NiFi Port Would you please tell me how to fix it: <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 503 Service Unavailable</title> </head> <body> <h2>HTTP ERROR 503</h2> <p>Problem accessing /Test. Reason: <pre> Service Unavailable</pre> </p> <hr> <a href=" <http://eclipse.org/jetty> http://eclipse.org/jetty">Powered by Jetty:// 9.4.3.v20170317</a> <hr/> </body> </html> Thanks and Regards, Rajesh Biswas | +91 9886433461 | < <http://www.bridgera.com/> http://www.bridgera.com/> <http://www.bridgera.com/> www.bridgera.com --- This email has been checked for viruses by Avast antivirus software. <https://www.avast.com/antivirus> https://www.avast.com/antivirus <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free. <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> www.avast.com
<<attachment: logs.zip>>