You are here:  » Automation - ERROR - TRANSFER FAILED

Support Forum



Automation - ERROR - TRANSFER FAILED

Submitted by fstore on Sat, 2012-02-04 14:40 in

Hi David
Hope you are doing fine, I am posting after such a long time.

I am having problem when downloading the datafeed from "Commission Factory" using automation tool. It give the error-transfer failed.

When I use the same URL into the browser I can successfully d/l the feed.
their url is like this
https://dashboard.commissionfactory.com.au/Affiliate/CreativesFeeds/DataFeeds/Download/?Id=106&Username=xxxxxx&Password=xxxxxxx

I will appreciate your help...

Thanks
Hassan

Submitted by support on Sun, 2012-02-05 10:11

Hello Hassan,

I see from the URL that it is https (secure HTTP) so this would indicate to me that SSL is not compiled in to your PHP installation and therefore the PHP automation handler is unable to request the file.

The first thing I would try is switching over to cURL by changing line 43 in config.advanced.php as follows;

  $config_automationHandler = "curl";

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by fstore on Sun, 2012-02-05 15:43

Hi David
I already have cURL enabled in config.advanced.php
But still I am having the same issue.

For the following feed it is giving me "ERROR - UNZIP FAILED"
{link saved}

Also there is another issue with my cron.php, it does not import all the feeds, and i have to setup another job "import @all" which run next day (of cron.php) to cover the missed feeds. So i end up with many broken links withing the gap period.

Because of these teo issues I have to spend lot of time doing thing manually. I will appreciate you could help me fix this.
Thanks
Hassan

Submitted by support on Sun, 2012-02-05 16:57

Hello Hassan,

The feed URL in your post wasn't actually zipped - I tried it on my test server and with Unzip set to on returned "ERROR - UNZIP FAILED". I re-ran the job with Unzip off, and the job ran to OK but was was actually returned was a login page, so I suspect that authentication may be required in your feed URL.

The first thing I would suggest (first of all with Unzip off) is to try the standard HTTP method for providing authentication which would be:

https://username:password@www.example.com/path/to/feed.xml

(replace the main part of the URL starting with the domain name after the @ character with your feed URL from after the https://)

If that works but then Feed Registration Step 1 does not auto-detect the format the response may actually be zipped once you are requesting the feed with authentication in which case re-enable Unzip and that should do the trick.

Regarding import not running to completion; I checked through email / forum posts and I don't believe that you have yet implemented the import into a temporary table mod which is ideal for large sites and prevents any downtime for your users whilst the import is taking place. Details are in this thread. It's quite an extensive mod so if you're not sure of any of the details email me the files and I'll patch them for you...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by fstore on Mon, 2012-02-06 13:13

David
You are right about the zip error- apologies it was my fault.

But still getting error on my other feed which has authemtication within url I will send you complete url on your email

Also regarding cron mod- thanks for offering your help, i guess i will need it.
should I send you the following files?
includes/admin.php
scripts/import.php
scripts/cron.php

My PT version is shown as 12/10A ,is this latest version?

Regards
Hassan

Submitted by support on Mon, 2012-02-06 13:16

Hi Hassn,

Sure - send the files and your URL that still isn't working and I'll test that and make the temporary table import mods for you..

12/10B is the latest version which is new admin features only but as you have the Automation Tool that means that you have already applied the upgrade patch!

Cheers,
David.
--
PriceTapestry.com

Submitted by fstore on Mon, 2012-02-06 13:38

Hi David
Automation tool worked as you suggested
I replaced the url from this

https://dashboard.commissionfactory.com.au/Affiliate/CreativesFeeds/DataFeeds/Download/?Id=106&Username=xxxxx&Password=xxxxxx

to
http://username:password@dashboard.commissionfactory.com.au/Affiliate/CreativesFeeds/DataFeeds/Download/?Id=106&Username=xxxxxxx&Password=xxxxxxx

Thanks
Hassan

Submitted by support on Mon, 2012-02-06 13:47

That's great, Hassan.

I've got your email with the files so I'll patch the temporary table mod for you and get those back to you...

Cheers,
David.
--
PriceTapestry.com