0
votes

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.

3

3 Answers

2
votes

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.

2
votes

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

1
votes

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