Ravi Kiran G
Ravi Kiran G

Reputation: 467

Could not find HTTP response object for this identifier

I am using the below Nifi processors

HTTPRequestHandler -> Some custom processors in between -> HTTPResponseHandler

Custom processors are used for doing some transformations.

In the HTTPResponseHandler processor i am getting

Flowfile had an HTTP.Context.identifier of true but Could not find HTTP response object for this identifier

Can anyone please help me on this.

Upvotes: 1

Views: 3035

Answers (3)

Ravi Kiran G
Ravi Kiran G

Reputation: 467

I was able to resolve the error HTTP.Context.identifier of true but Could not find HTTP response object for this identifier.

It was due to the Request Expiration property in StandardHttpContextMap controller service.

By default it was set to 1 min.

enter image description here

Post increasing the value to 10 min , i was able to resolve that issue since my custom processors look more time to process the data.

enter image description here

Upvotes: 3

Andy
Andy

Reputation: 14184

Please ensure that you have configured an instance of StandardHttpContextMap controller service and referenced the same instance in the HTTP Context Map property for both of the HandleHttpRequest and HandleHttpResponse processors. This context map allows the flowfile to reference the HTTP context from the initial request when crafting the response.

Upvotes: 2

Sateesh Telaprolu
Sateesh Telaprolu

Reputation: 150

With my understanding on NIFI since no code provided to identify exact problem, you are loosing HTTPResponse object somewhere during processing of the FlowFile in DataFlow.

Without code its hard to debug the issue

Upvotes: 1

Related Questions