Dnixon
04-10-2008, 08:42 AM
All of a sudden my True Update application is failing on a few computers, but not all of them are running it. It is very strange. They all were working about a week or two ago. Now some do and some don't. It seems to be related to the True Update application, and not the different operating systems.
What's happening is I get an error saying argument 1 of my HTTP.Download call has to be of a type string...but it is. Here's my code:
g_SourceURL = "http://m-repro.com/update_bpv1.5-2.exe";
g_PatchFileDest = SessionVar.Expand("%SourceFolder%\\Patches\\update_bpv1.5-2.exe");
g_HTTPTimeout = 30;
g_HTTPPort = 80;
g_HTTPTransferType = MODE_BINARY;
tableBasicAuthData = nil;
HTTP.Download(g_SourceURL, g_PatchFileDest, g_HTTPTransferType, g_HTTPTimeout, g_HTTPPort, tableBasicAuthData);
If I replace the variable in argument 1 with "http://m-repro.com/update_bpv1.5-2.exe" I don't get that error, but I get a new one. It says argument 2 must be of a type string. My code at that point looks like this:
g_PatchFileDest = SessionVar.Expand("%SourceFolder%\\Patches\\update_bpv1.5-2.exe");
g_HTTPTimeout = 30;
g_HTTPPort = 80;
g_HTTPTransferType = MODE_BINARY;
tableBasicAuthData = nil;
HTTP.Download("http://m-repro.com/update_bpv1.5-2.exe", g_PatchFileDest, g_HTTPTransferType, g_HTTPTimeout, g_HTTPPort, tableBasicAuthData);
It seems to be a bug with the HTTP.Download call, in my opinion, but I don't really know at this point. Any ideas from the Indigo Rose staff?
Thanks.
What's happening is I get an error saying argument 1 of my HTTP.Download call has to be of a type string...but it is. Here's my code:
g_SourceURL = "http://m-repro.com/update_bpv1.5-2.exe";
g_PatchFileDest = SessionVar.Expand("%SourceFolder%\\Patches\\update_bpv1.5-2.exe");
g_HTTPTimeout = 30;
g_HTTPPort = 80;
g_HTTPTransferType = MODE_BINARY;
tableBasicAuthData = nil;
HTTP.Download(g_SourceURL, g_PatchFileDest, g_HTTPTransferType, g_HTTPTimeout, g_HTTPPort, tableBasicAuthData);
If I replace the variable in argument 1 with "http://m-repro.com/update_bpv1.5-2.exe" I don't get that error, but I get a new one. It says argument 2 must be of a type string. My code at that point looks like this:
g_PatchFileDest = SessionVar.Expand("%SourceFolder%\\Patches\\update_bpv1.5-2.exe");
g_HTTPTimeout = 30;
g_HTTPPort = 80;
g_HTTPTransferType = MODE_BINARY;
tableBasicAuthData = nil;
HTTP.Download("http://m-repro.com/update_bpv1.5-2.exe", g_PatchFileDest, g_HTTPTransferType, g_HTTPTimeout, g_HTTPPort, tableBasicAuthData);
It seems to be a bug with the HTTP.Download call, in my opinion, but I don't really know at this point. Any ideas from the Indigo Rose staff?
Thanks.