To load files from a remote server to an Azure BLOB Storage, I am working on this tutorial from Azure team: Copy data from an HTTP endpoint by using Azure Data Factory or Azure Synapse Analytics .
I need to load publicly available files from this site through this API: Via API https://api.usaspending.gov/api/v2/download/disaster/
The tutorial for using the API (and other API from the above linked site) is provided here .
But when I run the pipeline, I get the following error:
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: (405) Method Not Allowed.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (405) Method Not Allowed.,Source=System,'
Question : How can we use the the above API Endpoint in Azure Data Factory to load publicly available files from their remote server?
Remarks : According to their site : /api/v2/download/disaster/ POST Returns a zipped file containing Account and Award data for the Disaster Funding
Our configuration of the Source
of ADF Pipeline :
The above source tests successfully as shown below :
The destination (an Azure Data Lake Storage) also tests successfully as shown below :
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.