Hi all,
I’m setting up an automation to download wetransfer links.
Using the text parser, I’m able to get the short wetransfer links, such as https://we.tl/t-1B7JJq8gm0
, out of my Gmail inbox.
When you visit these short links they redirect to long links which look like this: https://wetransfer.com/downloads/480666923940e66599d55677621e36a420241016100949/bc2305?t_exp=1729332589&t_lsid=25be9888-a400-4cca-bc3c-2336a09a8c31&t_network=link&t_s=download_link&t_ts=1729073389
I need the long link, and for that I added an HTTP module to Resolve Target URL.
However every time I feed it that link it is reporting an error 404. I also tried doing a basic GET request (both without headers and with some User-Agent and referrer headers) and it was also giving me a 404.
The link is valid for sure – it’s the same one in my example above and it works. But the HTTP module doesn’t think so.
Any idea why?
Thanks
PS. If anyone already has a scenario that downloads wetransfer links, that’ll save me the trouble of reinventing the wheel!
Hi @vikasbhatia,
Using a regular HTTP make a request module, the url https://we.tl/t-1B7JJq8gm0
works:
Why did you set the method to head instead of get, and did you change other settings as well? For example, the redirect settings under ‘advanced’?:
Cheers,
Henk
1 Like
@Henk-Operative thanks for taking the time to reply.
While looking at your screenshot, I just realised my mistake.
I was using regex to get the wetransfer links from the email body, and I made a tiny error in the pattern. I had https://we\.tl/[^\s"]+
which was getting me the URL, but with a "
at the end of it.
No wonder it was 404’ing, because having a "
at the end makes it an invalid URL. I thought I had it right but I’ve messed around so many times now it’s very likely I just made a typo and got it wrong!
I just fixed my regex to (https?:\/\/(?:www\.)?we\.tl\/[a-zA-Z0-9_-]+)
and the resolver is working correctly.
Also re: the method, I believe it was using HEAD by default for me when I added the action? But I was just playing around with all possible settings in case they’d solve my problem.
Anyway, all good now. Thanks!
1 Like