gjohnson / etcd-node

Alternative etcd client for node.js
32 stars 2 forks source link

broken POSTs due to superagent redirection #7

Open tj opened 11 years ago

tj commented 11 years ago

I think, gotta look into this but it looks like etcd is trying to redirect POSTs which superagent will convert to an GET to mirror the browser.

gjohnson commented 11 years ago

@visionmedia Hmmm think this had to do with leader / no leader. I haven't messed with clustering yet, so I assume my single local instance is the leader and I am hitting line 174

Perhaps your doing something to hit: https://github.com/coreos/etcd/blob/master/etcd_handlers.go#L189