Nifi Response Code

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Nifi Response Code

Rajesh Biswas
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">Powered by Jetty://
9.4.3.v20170317</a>

        <hr/>

    </body>

</html>

 

 

Thanks and Regards,

Rajesh Biswas | +91 9886433461 |  <http://www.bridgera.com/>
www.bridgera.com

 



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Reply | Threaded
Open this post in threaded view
|

Re: Nifi Response Code

Andy LoPresto-2
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
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

On Sep 26, 2018, at 5:51 AM, Rajesh Biswas <[hidden email]> 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">Powered by Jetty://
9.4.3.v20170317</a>

       <hr/>

   </body>

</html>





Thanks and Regards,

Rajesh Biswas | +91 9886433461 |  <http://www.bridgera.com/>
www.bridgera.com





---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Nifi Response Code

Andy LoPresto-2
Also, there is no resource for “/Test”. You should be accessing http://your_host:8080/nifi or https://your_host:8443/nifi

Andy LoPresto
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

On Sep 26, 2018, at 9:47 AM, Andy LoPresto <[hidden email]> 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
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

On Sep 26, 2018, at 5:51 AM, Rajesh Biswas <[hidden email]> 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">Powered by Jetty://
9.4.3.v20170317</a>

       <hr/>

   </body>

</html>





Thanks and Regards,

Rajesh Biswas | +91 9886433461 |  <http://www.bridgera.com/>
www.bridgera.com





---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Nifi Response Code

Rajesh Biswas

Hello Andy,

We have /Test in access URL, we are sending the data as HTTP POST request as http://localhost:7001/test URL

 

We are using HandleHttpRequest processor with below configuration

 

We are using below flow diagram to test the application:

 

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">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

 

 

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 | www.bridgera.com

 

From: Andy LoPresto [mailto:[hidden email]]
Sent: Wednesday, September 26, 2018 10:19 PM
To: [hidden email]
Cc: [hidden email]
Subject: Re: Nifi Response Code

 

Also, there is no resource for “/Test”. You should be accessing http://your_host:8080/nifi or https://your_host:8443/nifi

 

Andy LoPresto

PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

 

On Sep 26, 2018, at 9:47 AM, Andy LoPresto <[hidden email]> 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

PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

 

On Sep 26, 2018, at 5:51 AM, Rajesh Biswas <[hidden email]> 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">Powered by Jetty://
9.4.3.v20170317</a>

       <hr/>

   </body>

</html>





Thanks and Regards,

Rajesh Biswas | +91 9886433461 |  <http://www.bridgera.com/>
www.bridgera.com





---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

 

 


Virus-free. www.avast.com
Reply | Threaded
Open this post in threaded view
|

Re: Nifi Response Code

Andy LoPresto-2
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. 



Andy LoPresto
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

On Sep 27, 2018, at 7:05 AM, Rajesh Biswas <[hidden email]> wrote:

Hello Andy,
We have /Test in access URL, we are sending the data as HTTP POST request as 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">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 | www.bridgera.com
 
From: Andy LoPresto [[hidden email]] 
Sent: Wednesday, September 26, 2018 10:19 PM
To: [hidden email]
Cc: [hidden email]
Subject: Re: Nifi Response Code
 
Also, there is no resource for “/Test”. You should be accessing http://your_host:8080/nifi or https://your_host:8443/nifi
 
Andy LoPresto
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
 
On Sep 26, 2018, at 9:47 AM, Andy LoPresto <[hidden email]> 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
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
 
On Sep 26, 2018, at 5:51 AM, Rajesh Biswas <[hidden email]> 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">Powered by Jetty://
9.4.3.v20170317</a>

       <hr/>

   </body>

</html>





Thanks and Regards,

Rajesh Biswas | +91 9886433461 |  <http://www.bridgera.com/>
www.bridgera.com





---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
 
 

Virus-free. www.avast.com


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Nifi Response Code

Rajesh Biswas

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 | www.bridgera.com

 

From: Andy LoPresto [mailto:[hidden email]]
Sent: Thursday, September 27, 2018 11:28 PM
To: [hidden email]
Cc: [hidden email]
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. 

 

 

 

Andy LoPresto

PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

 

On Sep 27, 2018, at 7:05 AM, Rajesh Biswas <[hidden email]> wrote:

 

Hello Andy,

We have /Test in access URL, we are sending the data as HTTP POST request as 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">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 | www.bridgera.com

 

From: Andy LoPresto [[hidden email]] 
Sent: Wednesday, September 26, 2018 10:19 PM
To: [hidden email]
Cc: [hidden email]
Subject: Re: Nifi Response Code

 

Also, there is no resource for “/Test”. You should be accessing http://your_host:8080/nifi or https://your_host:8443/nifi

 

Andy LoPresto

PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

 

On Sep 26, 2018, at 9:47 AM, Andy LoPresto <[hidden email]> 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

PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

 

On Sep 26, 2018, at 5:51 AM, Rajesh Biswas <[hidden email]> 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">Powered by Jetty://
9.4.3.v20170317</a>

       <hr/>

   </body>

</html>





Thanks and Regards,

Rajesh Biswas | +91 9886433461 |  <http://www.bridgera.com/>
www.bridgera.com





---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

 

 

 

Virus-free. www.avast.com

 


logs.zip (79K) Download Attachment