Multi-file compression: execute fop cmd failed

problem description

  1. use the https://developer.qiniu.com/d. interface, and the error is as follows: http://api.qiniu.com/status/g..

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

        $qiniuDir = config("filesystems.courseware");
        $key = "test.txt";
        $zipKey = "$qiniuDir/{$cp->zip_name}_test.zip"; // key TODO: _test 
        $bucket = getenv("QINIU_OSS_BUCKET_NAME");
        $notify_url = null;
        $force = false;
        $pipeline = "queue-www-gy720-com"; //  : https://portal.qiniu.com/mps/pipeline
        $urls = $this->getUrls($cp->json_config_original);
        $fops = $this->getFops($urls, $zipKey, $bucket);
//dd($bucket, $key, $pipeline, $notify_url, $force);
        list($id, $err) = $this->getPfop()->execute($bucket, $key, $fops, $pipeline, $notify_url, $force);

        echo "\n====> pfop mkzip result: \n";
        if ($err != null) {
            var_dump($err);
        } else {
            echo "PersistentFop Id: $id\n";

            $res = "http://api.qiniu.com/status/get/prefop?id=$id";
            echo "Processing result: $res";
        }

what result do you expect? What is the error message actually seen?

  1. error message: execute fop cmd failed: source data is empty or fail to get source data
  2. where did $pipeline come from?
Php
Aug.08,2021
Menu