Support Questions

Find answers, ask questions, and share your expertise

InvokeHTTP Processor not including parameters on get call

avatar
New Contributor

I have an invokehttp setup that validates if a product id exists by calling an api from an external service. Both services (nifi, and django) are authenticated and the call from nifi is authorized by django service.

The only weird issue is that my url in invokehttp: https://<hostname>.com/products?productid=12

works perfectly fine with direct call, but when it's configured in invokehttp it responds with "not found". When I look through my django logs, I can see the request is authenticated and authorized but the call does not include the parameter, rather it includes only https://<hostname>.com/products

 

I have sslcontext and oauthtokenprovider service configured and working without issues.

I'm a bit confused as to why this isn't working, my only thinking is invokehttp 1.20 requires a different url for parameters? This did work in 1.18 invokehttp.

3 REPLIES 3

avatar
Community Manager

Welcome to the community @john0123. Perhaps @stevenmatison may know the answer here. 


Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

avatar

@john0123 There are several ways to include values with the InvokeHttp call.  Custom values in the host/url is not preferred as they may not be noticed there.  Try to add productId as a user-defined property. Click the (+) on properties and create it there.    Then test again.

avatar
Community Manager

@john0123 have you been able to resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 

Screen Shot 2019-08-06 at 1.54.47 PM.png

 

 


Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.