So we have locked down the server and all request for videos and music files need to come through another server it is to stop google from trying to index our mp4 etc however it seems that your script did not like accessing data that was not on the same server