Support Questions
Find answers, ask questions, and share your expertise

InvokeHttp Issue (Error 422)

Highlighted

InvokeHttp Issue (Error 422)

Explorer

Hi

I have an issue with an InvokeHttp Process.

Overview:

I have the below Nifi process whereby I create a dynamic URLs and call them using an InvokeHttp process.

107113-nifi-flow.png


Issue:

However, I am getting the below error from the InvokeHttp Process resulting in the and Json file not being retrieved.

107073-nifi-invokehttp-error.png


Note:

I got this error when I first called the master URL from the GetHttp process at the start. I was able to solve the issue by defining the User Agent property within then GetHttp processor to be Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36

107124-nifi-gethttp-properties.png


Question:

Is it possible to define a User Agent property in the InvokeHttp Process?

Is there some other way I am able to solve this issue?

Hope that made sense

Many Thanks

Tim


1 REPLY 1
Highlighted

Re: InvokeHttp Issue (Error 422)

Explorer

Hi All

I managed to solve this issue by manually adding the property "User-Agent" to the invokehttp process


108715-invokehttp.png

Regards

Tim