- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hello, I have a problem getting inormation with InvokeHTTP in NiFi
- Labels:
-
Apache NiFi
Created on 08-16-2022 09:55 AM - edited 08-16-2022 10:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
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.
Created on 08-16-2022 10:23 AM - edited 08-16-2022 10:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Three attributes: Accept, Authorization, US-Customer-Api-Key I added manually inside the processor InvokeHTTP.
Responce:
Created 08-16-2022 01:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
