json errors in send_buffer