Closed GeorgeGkinis closed 1 month ago
Hey @GeorgeGkinis, there are 2 issues in there:
verb
is POST
GET
request. You can wrap the http
processor in a branch
if you want to avoid altering the original message and you can set the url in a metadata field to extract it in the url
field via interpolation.This should work:
input:
generate:
mapping: root = {"url":"https://data.binance.vision/data/spot/daily/trades/1INCHUSDT/1INCHUSDT-trades-2023-03-20.zip"}
interval: 0
count: 1
pipeline:
processors:
- mapping: |
root = ""
meta url = this.url
- http:
verb: GET
url: ${! meta("url")}
output:
file:
path: downloaded.zip
codec: all-bytes
I am trying to download historical data from binance:
The output is:
The strange thing the following works from the same terminal session, same PC: CURL:
GO:
Any ideas why this only happens in benthos?