add error check for flv proxy