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 | |
by Your Mother (Archbishop) on Jan 15, 2016 at 16:05 UTC |