|
netsoul
|
 |
« on: 06 February , 2008, 13:14:24 » |
|
Hi again, Can you please specify: what does 'klError = - 40' mean in response of KL server for command Exist, File plugin? The responses 0 or -1 are defined in the docs only.
Thanks, Alex
|
|
|
|
« Last Edit: 12 February , 2008, 04:13:11 by jusahama »
|
Logged
|
|
|
|
|
KL Admin
|
 |
« Reply #1 on: 06 February , 2008, 14:01:17 » |
|
Hi, that is actually more general error; "Too Big". You might be sending really big bunch of variables? Max size is limited it to 4K (little less actually), which KL will receive.
cheers, Jukka
|
|
|
|
|
Logged
|
|
|
|
|
netsoul
|
 |
« Reply #2 on: 06 February , 2008, 14:55:13 » |
|
I'm just triying to check^ is the file exist? ------------- dist = "cache\\13_2.txt"; src = _root.host + "?act=getPro&ch=13&date=2"; klError = 1; loadVariables(" http://127.0.0.1:1001/Basic/file?klCommand=exist&klPath="+dist, "", "POST"); ------------- ... and this error appears on second attempt to check the file. By other words, I try to verify, is the file exist? If not - to download it. This method works well for each file separately. But when I try to repeat the procedure twice for 2 different files, I receive the error -40. This's in application. The separate test returns the following:  -Alex
|
|
|
|
|
Logged
|
|
|
|
|
netsoul
|
 |
« Reply #3 on: 06 February , 2008, 16:15:47 » |
|
... it looks like the problem again is in the moment when the resources free. I've inserted a few empty frames with 12 fps between that two procedures, and it's working correct now. Can you please investigate this problem?
Thanks, Alex
|
|
|
|
|
Logged
|
|
|
|
|
KL Admin
|
 |
« Reply #4 on: 07 February , 2008, 02:58:49 » |
|
looks like download problem again. We'll publish the 0.95 version this week, which should fix this.
cheers, Jukka
EDIT: We changed also some file writing methods, to avoid this kind of asynchronous problems to occur.
|
|
|
|
« Last Edit: 07 February , 2008, 03:03:37 by jusahama »
|
Logged
|
|
|
|
|
netsoul
|
 |
« Reply #5 on: 07 February , 2008, 06:28:38 » |
|
Hi Jukka,
One more moment's: how do you verify, is the file exist? And how the size of the verifying files can affect on the "klError=-40" problem? I've just reduced the size of both files less than 500 bytes, and the method Exist is working now. Do you read the attributes of verifying file or the file wholly, to define it exists?
Sorry for a lot of questions. -Alex
|
|
|
|
|
Logged
|
|
|
|
|
KL Admin
|
 |
« Reply #6 on: 07 February , 2008, 08:35:45 » |
|
Hi, one thing might be that FL is sending lot of extra variables in loadVariables call, due POST method, if there are lot defined in the current scene. You can try to change "POST" to "GET" method, I think we should change wiki also.. I don't think filesize itself is an issue. In "exist" command we check can we open the file and I see it works. If file is in use(locked), its not a problem. Keep on passing questions, they're good ones  Jukka
|
|
|
|
|
Logged
|
|
|
|
|
C00L
|
 |
« Reply #7 on: 07 February , 2008, 09:59:27 » |
|
And how the size of the verifying files can affect on the "klError=-40" problem? I've just reduced the size of both files less than 500 bytes, and the method Exist is working now.
I think when Jukka referred to size, it was not the size of the file, but the size of the variables sent. I would like to see if your problems still persists with the new release. I belive (and hope) not:) And no problem about questions, it makes us happy  cheers, Ugur.-
|
|
|
|
|
Logged
|
Kuneri Support Team
|
|
|
|
netsoul
|
 |
« Reply #8 on: 07 February , 2008, 11:01:49 » |
|
Thank you once again! I will try it asap and tell you about results. As an offer for the future, it would be great to add a command DiskSpace to be sure of enough free space for downloads.
Good luck, Alex
|
|
|
|
|
Logged
|
|
|
|
|
netsoul
|
 |
« Reply #9 on: 07 February , 2008, 11:28:18 » |
|
Unfortunately, changing POST to GET hasn't achieved results - server just not accepts arguments (klError=-28). Or you told about the next KL version? -Alex
|
|
|
|
|
Logged
|
|
|
|
|
KL Admin
|
 |
« Reply #10 on: 07 February , 2008, 12:55:35 » |
|
Hmm..I tought it would accept. I tested with new unreleased KL v. 0.95 this, and it worked. Anyway, it will be available soon!
cheers -j
|
|
|
|
|
Logged
|
|
|
|
|
KL Admin
|
 |
« Reply #11 on: 07 February , 2008, 23:19:03 » |
|
Hi, update once again: when I tested this better noticed also that GET does not work, when there are existing, not kl related variables defined in current scope. It causes this -28.
Therefore, POST should be always used.
cheers, Jukka
|
|
|
|
« Last Edit: 08 February , 2008, 00:01:56 by jusahama »
|
Logged
|
|
|
|
|
netsoul
|
 |
« Reply #12 on: 08 February , 2008, 00:11:21 » |
|
Hi Jukka,
Thanks for info. I'll think, how to incapsulate a sending data.
-Alex
|
|
|
|
|
Logged
|
|
|
|
|
netsoul
|
 |
« Reply #13 on: 08 February , 2008, 00:35:31 » |
|
I've just yielded to the advice from FL help "If no variables are sent, omit this parameter.", and it looks like the solution.  You can test it there too. -Alex
|
|
|
|
|
Logged
|
|
|
|
|