Friday, October 24, 2014

Couchdb Filter Replication Error: "changes_reader_died" Debugged

Couchdb replication allows for filtering. It produces a nondescript error of "changes_reader_died" with endless attempts at replication. The error is a result of a poorly named query key (parameter).

This can be seen when a document in the _replicator database contains the following. The query key is set to "key".

"query_params": {
    "key": "user"
  }
}

You may have to delete your _replicator database to stop the replication loop even with "continuous": false.


The solution was to change the key from "key" to another label. In the example below it is changed to "mailbox".


"query_params": {
    "mailbox": "user"
  }
}

With this change the dreaded "error" :"changes_reader_died" was debugged and I could relax.

Monday, July 14, 2014

My statement to the FCC on Net Neutrality

As a former FCC employee of the Cable TV Bureau, I'm all in on Net neutrality. As an Internet user, net neutrality is vitally important to me, my family and my community. The FCC should use its Title II authority to protect it.

ISPs should not be able to profit from so called fast lanes. The internet was designed so that the end user pays, not the content providers upstream. The ISPs want a drastic and draconian change to the business model of the internet. They are trying to use their monopoly power and this is why the FCC was created - to protect communication from monopoly power - be it Bell or CableTV. Please protect the internet and the business model that has server the US and the world so well.

Thank you.

Monday, July 07, 2014

Passport Error with Google: Error: invalid_client

Nodejs module passport allows loggin into your app with OAuth2 for Google. But I kept getting an error of "invalid_client".

Google eror message screen
The solution was rather simple: check for typo in clientID in the passport.use(new GoogleStrategy({

In my app there was an extra number at the start of the clientID string.