Support Questions

Find answers, ask questions, and share your expertise

Hello, I have a problem getting inormation with InvokeHTTP in NiFi

Explorer

The API works well in Postman, I got the responce with a json data.

Get:  https://service3.ultipro.ca/personnel/v1/person-details

Headers in Postman are:

Accept: */*

Accept-Encoding: gzip, deflate, br

Authorization: basic ******************************************

US-Customer-Api-Key: *****

Content-Type: application/json; charset=utf-8

Now in NiFi:

Hashem1980_0-1660667660555.png

Generate Flow File:

                    Mime Type: application/json

                    Character Set: UTF-8

InvokeHTTP:

GET

https://service3.ultipro.ca/personnel/v1/person-details

Content-Type: ${mime.type}

Accept     Accept:application/json

Authorization     Authorization:basic ********************************

US-Customer-Api-Key    US-Customer-Api-Key:*****

 

Responce is: 404 Not Found

 

May someone help me please?

Appreciated.

 

 

 

 

 

2 REPLIES 2

Explorer

Three attributes: Accept, Authorization, US-Customer-Api-Key I added manually inside the processor InvokeHTTP.

Responce:

Hashem1980_0-1660671543899.png

 

Super Collaborator

Hi,

not sure if you are repeating the attribute name in the processor dynamic property values! Make sure the different header attributes are set\add as follows:

SAMSAL_0-1660682019332.png

 

 

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.