Run RPC request against I am forking the Altcointipbot for reddit to make a tipbot for Litecoin. There has been a lot of problems that I've managed to solve, but this one I cannot seem to solve. When I try to start the script, it stops when trying to make a RPC request, giving me an error with code 500. This is the traceback:

Traceback (most recent call last):
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "cointipbot.py", line 539, in __init__
    self.self_checks()
  File "cointipbot.py", line 144, in self_checks
    b.register()
  File "ctb/ctb_user.py", line 230, in register
    new_addrs[c] = self.ctb.coins[c].getnewaddr(_user=self.name.lower())
  File "ctb/ctb_coin.py", line 172, in getnewaddr
    self.conn.walletpassphrase(self.conf.walletpassphrase, 1)
  File "ctb/pifkoin/bitcoind.py", line 69, in __call__
    return server._rpc_call(self.method, *args)
  File "ctb/pifkoin/bitcoind.py", line 216, in _rpc_call
    raise BitcoindException('%d (%s) response from bitcoind' % (response.status, response.reason))
ctb.pifkoin.bitcoind.BitcoindException: 500 (Internal Server Error) response from bitcoind


My guess would be that the RPC request goes to bitcoind (litecoind), where as now you need to use bitcoin-cli for requests (at least that's how it is in the terminal). However, I cannot seem to find anything in the code that's specifying that the request goes to bitcoind and not bitcoin-cli, so maybe it takes care of that automatically? I am by no means very good at this, so I was hoping someone with more experience could help me figure it out.

The part in the code where all the RPC requests happens can be found here: https://github.com/dpifke/pifkoin/blob/master/python/bitcoind.py

The rest of the source is here, but it's probably not necessary: https://github.com/vindimy/altcointip

I've already edited the litecoin.conf to include rpcport, rpcuser, rpcpassword and server=1.

Thanks in advanced!
I found the problem. Turns out the it was actually running as it should. The reason for the error message was that the program tried to decrypt the wallet, but I never encrypted it in the first place. After encrypting it, it works fine.