The server returns a 204, which is not an error but an empty response. So $tx->success is true but $tx->json is undef.