مشکل در صورت نبود فایل
اگر فایل آیدی اشتباه به روت ارسال شود. اررور زیر بر میگردد
روت :{{root_url}}/v1/files/load/5bf85a10625ec500065d0574
جواب : { "success": false, "data": { "name": "Exception", "message": "Cannot use object of type yii\web\NotFoundHttpException as array", "code": 0, "file": "/app/core/rest/config/main.php", "line": 40, "stack-trace": [ "#0 [internal function]: {closure}(Object(yii\base\Event))", "gamestore#1 /app/vendor/yiisoft/yii2/base/Component.php(627): call_user_func(Object(Closure), Object(yii\base\Event))", "gamestore#2 /app/vendor/yiisoft/yii2/web/Response.php(336): yii\base\Component->trigger('beforeSend')", "gamestore#3 /app/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Response->send()", "gamestore#4 /app/index.php(17): yii\base\Application->run()", "gamestore#5 {main}" ] } }