Hi everyone,
I am struggling with loading data from a bog standard api url. Using a browser, the data is loaded instantly and it is in proper json format.
However, when accessing the data with either Get Request or HTTP Retriever node, both fail with time out error.
I am simply feeding the following url https://www.imf.org/external/datamapper/api/v1/NGDP_RPCH directly into the nodes (using a table for the HTTP Retriever).
What could be the reason?
Thanks for your thoughts and help!
Brgds
Thomas
Hi @ThG2020,
The web server requires some HTTP headers (Accept*
) to be present in order to respond to your request.
I gave it a try and the below curl command works:
curl "https://www.imf.org/external/datamapper/api/v1/NGDP_RPCH" \
-H 'Accept: application/json' \
-H 'Accept-Encoding: *' \
-H 'Accept-Language: *'
Please make sure to set the headers in your configuration and provide some meaningful values. More information about setting headers in the HTTP Retriever here:
Best regards,
Daniel
1 Like
Hi Daniel,
thanks a lot for your help, I haven’t thought of the headers! Works easily with Get Request node.
Brgds
Thomas
1 Like
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.