Sally Dabbah Thanks for your answer, the container is behind firewall therefore it is causing the issue
Azure Data factory Copy From REST API to Sink
Hi,
I am pulling API data. I have a copy activity with the source as REST and sink as JSON to store in ADLS. The link service test for the REST is successful. Also I'm able to "preview data" on source in Copy activity But during the debug run following error throws up-
ErrorCode=HttpFileFailedToRead,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Failed to read data from http server. Check the error from http server:The remote server returned an error: (403) Forbidden.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (403) Forbidden.,Source=System,'
Azure Data Factory
3 answers
Sort by: Most helpful
-
-
Sally Dabbah 5 Reputation points Microsoft Employee
2023-02-16T09:26:43.0733333+00:00 Hello Dubey, Can you please provide more information regarding the response that you get from your restAPI, is it a Json structured or CSV?
-
Sally Dabbah 5 Reputation points Microsoft Employee
2023-02-16T10:04:02.8366667+00:00 i think you should change your source and sink configuration in the Copy activity.
Here is a simple POC that i did:added a Copy activity to a pipeline.
in Source:
Source Dataset: i added only the catfact URL.
Sink:
A Json in ADLS account
Sink Dataset:
so the sink dataset is a Json file linked to my ADLS account.
Output in ADLS:
a Json file containing the result from the API.