Forum Discussion
jfpelletier - I tested a similar use case, downloading a sample PDF from https://www.africau.edu/images/default/sample.pdf using the HTTP Client snap, using GET request method. Note that by changing the output view type to Binary in the HTTP Client snap "Views" tab, you can go directly to the File Writer and you get a valid output file.
Hope this helps!
Hello koryknick,
Thanks for letting me know that we can output binary directly from the HTTP client, that's very good to know!
So I tried that and unfortunately my resulting document is still not valid. Maybe my issue is the way that I retrieve the file? When I look at the preview to download the results, it says that the file only contains the 20,000 first bytes, which is not the correct size. What is the best way to download a file that I downloaded from the HTTP client?
Kind regards,
JF
- Abhishek_Soni373 years agoContributor
Hey @acatlan ,
In the Has next input box, you are passing the value as a string, remove the quotes.
Let us know if it works!
Hi @Soni37 ,
When I remove the quotes I get the following:
I can run it with the error but it doesn’t return the next batch.
I’ve also ran it without the quotes and without the “=” sign selected it doesn’t return an error but it doesn’t go to the next batch.- Abhishek_Soni373 years agoContributor
Hey @acatlan ,
As per the workable document link you shared paging.next will contain the URL of the next result set.
You need to make below changes:
- Has next should be an expression or a key that returns true or false. Below expression will check if the path exists in the response.
$.hasPath(“$entity.paging.next”)
In the Next URL, you need to use the URL that was provided in the $entiity.paging.next.
You may need to adjust the URL or the expression as per your need.
I hope this helps.
Related Content
- 3 years ago
- 10 months ago
- 4 years ago
- 2 years ago