-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Receives error 503 when making multiple renames immediately after each other #44
Comments
That would be a solution, but then every command would have to check for some lock mechanism from rename. Except for |
Was this issue fixed? I'm still seeing this error when moving multiple files in a C9 FTP project. |
It is fixed because parallel calls are not possible in jsftp since 1.0. The same can be accomplished in a more 'node' way with callbacks or promises. What version are you on? Also, I thought you were not using jsftp anymore in Cloud9 though and interfacing directly with an |
We are still using jsftp but stuck on 0.5.5 because of some file listing issues. I fixed it now with this change https://github.com/ajaxorg/jsftp/commit/97d65da1c29f3bc9b1a2363431b87a7bc9520373 |
Ugh. It would be worth updating to 1.0 and test. Besides the one above, other reasons for upgrading:
|
When making two or more immediately (i.e. not waiting for callbacks) successive calls to
.rename
, the server responds with a503
. Use the code below to reproduce the error.Looking at the implementation of
.rename
, it looks to me like theRNTO
call isn't queued before the callback from theRNFR
call is received. Therefore it will be possible to smuggle other calls into the queue in betweenRNFR
andRNTO
, which probably is what causes the error.Ideally
.rename
should be changed in some way such that it produces only a single item to be queued.The text was updated successfully, but these errors were encountered: