solved publicurl notvalid method