Open wyqydsyq opened 9 years ago
Same issue here.
Same
According to the source code and error, there should be a error msg in console or status panel? Someone who can put the error log?
This happened to me, too, - also using remote-sync. The issue was caused by the server that I was trying to save to not having any more room on the hard drive. Anyways - one thing to look out for if this error shows up.
+1 on latest update 4.0.0
Happens along with:
[18:01:15] Connecting: ****@****:22
Error: Unexpected disconnection from agent
[18:01:17] Upload: D:\****.js to /home/****.js ...
Error: Authentication failure. Available authentication methods: undefined
Error: Timed out while waiting for handshake
@yongkangchen Any update on this?
same issue here
@yongkangchen This is a critical issue that renders remote-sync
completely unusable in certain conditions, could you please take a look at your source code and find out why the async
callback may be called more than once?
Same issue. Maybe help this https://github.com/caolan/async/issues/1279
I had this error when I simply had an invalid ftp username.
In my case this issue appears while pageant was not running (agent auth.). After starting pageant it's working.
This happens to me as well. It is not async's fault, but async should provide way better error messages.
Example code
async.parallel({
accounts: function (callback) {
NativeModules.AppAccountBridge.fetchData().then((accounts) => {
callback(null, accounts);
}).catch(function (error) {
callback(error, null)
})
},
limits: function (callback) {
NativeModules.AppPurchaseLimitBridge.getLimits().then((data) => {
callback(null, data.limits) // <<<<<<<<<<<<<<<<< the offending line <<<<<<<<<<<<<<<<<<<<<
}).catch(function (error) {
callback(error, null)
})
}
}, (err, success) => {
console.log(success);
})
See " the offending line". Here I'm trying to access limits
on data
. Problem is that limits
doesn't exist. This throws an exception which async catches. Then async emits that ill-formed and misleading error message.
@hfossli I don't think that the problem is with async or that its providing the wrong error, the problem is that you are actually calling the callback twice. You should be using a finally construct essentially:
let data = null
let err = null
NativeModules
.AppPurchaseLimitBridge
.getLimits()
.then(d => data = d)
.catch(e => err = e)
.finally(() => callback(err, data))
+1
Atom Version: 0.179.0 System: linux 3.16.7-7-desktop Thrown From: remote-sync package, v2.4.0
Stack Trace
Uncaught Error: Callback was already called.
Commands
Config
Installed Packages