Solved

HTTPCaller problem with download file via URL

  • 25 February 2021
  • 2 replies
  • 33 views

Hello everyone,

I want to download files from USGS.

In my workspace I have a Creator connected to HTTPCaller.

My HTTPCaller looks like this:

 

screenWhen I Run the workspace I get error 'Error running translation'.

When I paste this URL to browser and click enter, after about two minutes file starts download but I can't use this URL in HTTPCaller.

Any ideas ?

Cheers

Ann

 

icon

Best answer by 7madness5 25 February 2021, 10:12

View original

2 replies

Userlevel 3
Badge +18

There is usually more info in the log than 'Error running translation'.

 

Why is your url looking like this https:\\/\\/blabla.bla\\/bla

My urls normaly look like thisk https://blabla.bl/bla

 

You are sending an X-Auth-Token so you probably need to be logged in to download the data? Is the X-Auth-Token the only thing or do you need to send cookies? Or other parameters? Do you need an GET or POST request?

 

If you past the URL in a clean private browsing window and press enter do you still get the file? Then sending X-Auth-Token is probably not needed.

 

I guess we need more information to solve the problem, but maybe others download files from USGS all the time and have all the settings you need.

Thank You,

I get URL looking like this https:\\/\\/blabla.bla\\/bla from another HTTPCaller, which gave me information about satellite image that I want to download.

I changed https:\\/\\/blabla.bla\\/bla to https://blabla.bl/bla and it's work !

Cheers

Reply