Support Questions

Find answers, ask questions, and share your expertise

Interacting with Nifi Paramater Context using InvokeHTTP - Getting error

avatar
Contributor

Hi Team,

I am trying to develop a flow to update the Parameter context on the fly using the InvokeHTTP Processor. Based on the screenshot i have configured the same. However i am getting unAuthorized Error. 

 

My URL format is like : https://<nifi-host>:<port>/nifi-api/parameter-contexts/<context-id>

rajivswe_2k7_0-1742475176940.png

Error Screenshot.

rajivswe_2k7_1-1742475217947.png

 

 

1 REPLY 1

avatar
Master Mentor

@rajivswe_2k7 

The error you shared points to an authorization issue.
With a secured (https) enabled NiFi all actions must be performed by an authenticated and authorized user/client.

When using the invokeHTTP processor the configured SSL Context service keystore provides the authenticated client via the clientAuth private key entry.  

That client is not authorized view on the specific parameter context.

MattWho_0-1742489764914.png

So while your user that authenticated into the NiFi UI may be authorized to create and modify a parameter context, that does not mean a processor executed by that user nor inherits some special authorization.    

Your client derived from the keystore will need to be authorized to both view and modify the parameter context.  You should check the nifi-user.log for the not authorized action which will show you the client identity which is missing the required authorizations on the parameter context.

 

Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt