Data Source using REST Integration Hub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 02:54 PM
Hi
I am trying to import data from an external API (Rest), I have created the Data Source Request action.
I have tested the Request Action within the flow designer and it is working well and I can see the Data I need on the the response_body of the API call
now when I am trying to run the "Test Load 20 Records" I am getting an error.
here is the Data Source I have set:
and this is the error I am getting :
the JSON file looks like this when I use PostMan to test the API connection :
Do you have any idea why I am getting this error ?
javax.json.JsonException: Cannot auto-detect encoding, not enough chars
please advice
Thanks
Aviram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 08:39 AM
Hi @Aviram Elkayam ,
You can use script etc. but that is a complex solution . SN will do it for you automatically for you if you setup the Request Action correctly and it works for me fine.
Regards
Shiva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2025 01:13 PM
I'm not sure your situation... but I spent the better part of 2 days trying to track down this same issue.
The solution... was the data stream... must to be in a scope not in global... once I did that... I did not have this issue.