The CreatorCon Call for Content is officially open! Get started here.

Data Source using REST Integration Hub

Aviram Elkayam
Tera Contributor

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 

 

AviramElkayam_0-1705358801285.png

 

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:

 

AviramElkayam_1-1705358968465.png

 

and this is the error I am getting :

 

AviramElkayam_2-1705359079504.png

the JSON file looks like this when I use PostMan to test the API connection :

 

 

AviramElkayam_4-1705359173850.png

 

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 

 

 

 

 

6 REPLIES 6

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

Daniel Peel
Mega Sage

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.