Connected to Grin server, but thread 'client_controller' panicked

ran netstat -tulpn and saw

tcp        0      0 127.0.0.1:13413         0.0.0.0:*               LISTEN      5022/./grin/target/ 
tcp        0      0 0.0.0.0:13414           0.0.0.0:*               LISTEN      5022/./grin/target/ 

so I started grin-miner, it seemed to have connected fine

Connected to Grin server at 127.0.0.1:13413

But it doesn’t mine. I looked at the log and it had:

Sep 23 09:43:28.633 INFO This is Grin-Miner version 0.3.0 (git 38e00f5), built for x86_64-unknown-linux-gnu by rustc 1.29.0 (aa3ca1994 2018-09-11).
Sep 23 09:43:28.633 DEBG Built with profile "debug", features "" on Fri, 21 Sep 2018 18:40:42 GMT.
Sep 23 09:43:29.633 WARN Connection Status: Connected to Grin server at 127.0.0.1:13413.
Sep 23 09:43:29.733 DEBG sending request: {"id":"0","jsonrpc":"2.0","method":"getjobtemplate","params":null}
Sep 23 09:43:30.033 DEBG Received message: HTTP/1.1 400 Bad Request

Sep 23 09:43:30.172 ERRO 
thread 'client_controller' panicked at 'called `Result::unwrap()` on an `Err` value: Error("expected value", line: 1, column: 1)': libcore/result.rs:945stack backtrace:
   0:     0x56105ef0ad05 - backtrace::backtrace::libunwind::trace::ha7c99bed1f1ee6b7
                        at /home/sealion/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.9/src/backtrace/libunwind.rs:53
                         - backtrace::backtrace::trace::h02e4d0e7b04d6bb0
                        at /home/sealion/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.9/src/backtrace/mod.rs:42
   1:     0x56105ef069be - backtrace::capture::Backtrace::new_unresolved::hb1f712c00acbb897
                        at /home/sealion/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.9/src/capture.rs:88
   2:     0x56105ef0691c - backtrace::capture::Backtrace::new::hf58aa3ccf61b4dae
                        at /home/sealion/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.9/src/capture.rs:63
   3:     0x56105eabc857 - grin_miner_util::logger::send_panic_to_log::{{closure}}::he3855b7829d844b5
                        at util/src/logger.rs:120
   4:     0x56105ef32d33 - std::panicking::rust_panic_with_hook::hba05450791beb933
                        at libstd/panicking.rs:479
   5:     0x56105ef328d9 - std::panicking::continue_panic_fmt::hd2a4220d2e2291e2
                        at libstd/panicking.rs:390
   6:     0x56105ef327d5 - rust_begin_unwind
                        at libstd/panicking.rs:325
   7:     0x56105ef887db - core::panicking::panic_fmt::h2c383e888dce42c0
                        at libcore/panicking.rs:77
   8:     0x56105eb01e8a - core::result::unwrap_failed::he8468de21a764cff
                        at /checkout/src/libcore/macros.rs:26
   9:     0x56105e8595b1 - <core::result::Result<T, E>>::unwrap::hd4376c865a9956e5
                        at /checkout/src/libcore/result.rs:782
  10:     0x56105e8795ef - grin_miner::client::Controller::run::h81bc6f0cd844f6a9
                        at src/bin/client.rs:427
  11:     0x56105e89f488 - grin_miner::main::{{closure}}::h2aa23056af06107a
                        at src/bin/grin_miner.rs:171