Hi,
I'm having trouble passing a URL through the download tool. Its an https link which, when i paste directly into a browser initiates a download. However, when I pass it through a text input to the download tool, I get a parse error on one of the attributes in the query string.
I'm sure I'm missing something really simple here!
Here's an example URL (they expire after an hour so I'm sure it won't work - you will get an expired request response):
https://axle-deliveries.s3.amazonaws.com/deliveries/a7139011213aebc9/output/US_Business-00000_place.csv.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAI42R5GCTOOUYM44Q%2F20170412%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170412T182730Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=3a5e2cbd2d20f586f5d68c67174f7226058426f751261a2dd639065f8d6c6862
Here's an example of the error response I receive in the download tool:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AuthorizationQueryParametersError</Code><Message>Error parsing the X-Amz-Credential parameter; the Credential is mal-formed; expecting "<YOUR-AKID>/YYYYMMDD/REGION/SERVICE/aws4_request".</Message><RequestId>6E07F5E38B17DF48</RequestId><HostId>KvG6deDYqd+Tri7uVJDqXakzPlFJmtvCzcWIjhhAIUrVljqQmK6fUiSaErhqAwgYb199VZx8T/s=</HostId></Error>
I'm using the following settings in the download tool:
Basic:
- field = URL (which is the name from text input tool)
- encode URL text (checked)
- output: to a field / string
Payload:
- GET
- nothing else selected or entered
NOTE: if the hour passes, i get a "request expired" response instead as expected.
NOTE: the end process I'm going for is
a) request using the download tool a JSON response with the "subscription" details for the files available to me
b) parse the URLs out of that response
c) submit those URLs to the download tool to pull the files
parts a + b are working.
part c I tried but get the same error for each file that I pasted above for the single text input URL.