in reply to JSON RPC

This is a stab in the dark but the error line is my $content = ( $json || JSON->new->utf8 )->decode( $obj->content ); and the error/bad JSON is "Content-Type..." so to me it looks like perhaps you are double printing headers from your application. Something like–

HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Content-Type: application/json Content-Length: 13 {"oh":"hai!"}

Replies are listed 'Best First'.
Re^2: JSON RPC
by dlal66 (Acolyte) on Jan 15, 2016 at 15:58 UTC
    No. I am having JSON::RPC::Client handle everything. I can see on wireshark that the request sent and received both have no double headers".

      Well the error is pretty clear that it's attempting to parse a Content-Type line as JSON so... If I were you, I'd add some debug printing to the module to see what *it* is getting (server bug or unexpected response) or what it thinks it's getting and subsequently handling incorrectly (module bug).