bitcoind replies 500 error
It's due to miss-sync of bitcoind in my case.

Just wait the bitcoind sync with the bitcoin network (9GB actually), and after you can use it.

du -ksh ~/.bitcoin/ will give the size.