Thanks! For anyone else reading, I noticed that bitcoin-cli worked properly when bitcoind was invoked via the command line, but not when running the GUI.
Adding "server=1" to bitcoin.conf fixed this issue.
bitcoind will default to
server=1. bitcoin-qt will not. So if you want to use the RPC server while running bitcoin-qt, you need to set
server=1