I am using Amazon S3
in Yii2 framework
For now i am getting this type of error:
{
"name": "PHP Notice",
"message": "Undefined property: stdClass::$body",
"code": 8,
"type": "yii\base\ErrorException",
"file": "/var/www/html/project_name/api/modules/v1/models/S3.php",
"line": 880,
"stack-trace": [
"#0 /var/www/html/project_name/api/modules/v1/models/S3.php(880): yii\base\ErrorHandler->handleError(8, 'Undefined prope...', '/var/www/html/r...', 880, Array)",
"#1 [internal function]: api\modules\v1\models\S3Request->__responseWriteCallback(Resource id #4, '<?xml version=\"...')",
"#2 /var/www/html/project_name/api/modules/v1/models/S3.php(833): curl_exec(Resource id #4)",
"#3 /var/www/html/project_name/api/modules/v1/models/S3.php(186): api\modules\v1\models\S3Request->getResponse()",
"#4 /var/www/html/project_name/api/modules/v1/models/Webservice.php(105): api\modules\v1\models\S3->putBucket('nestimages', 'public-read')",
"#5 /var/www/html/project_name/api/modules/v1/controllers/WsController.php(1066): api\modules\v1\models\Webservice->createNests3(Array)",
"#6 [internal function]: api\modules\v1\controllers\WsController->actionCreatenests3()",
"#7 /var/www/html/project_name/vendor/yiisoft/yii2/base/InlineAction.php(55): call_user_func_array(Array, Array)",
"#8 /var/www/html/project_name/vendor/yiisoft/yii2/base/Controller.php(151): yii\base\InlineAction->runWithParams(Array)",
"#9 /var/www/html/project_name/vendor/yiisoft/yii2/base/Module.php(455): yii\base\Controller->runAction('createnests3', Array)",
"#10 /var/www/html/project_name/vendor/yiisoft/yii2/web/Application.php(84): yii\base\Module->runAction('v1/ws/createnes...', Array)",
"#11 /var/www/html/project_name/vendor/yiisoft/yii2/base/Application.php(375): yii\web\Application->handleRequest(Object(yii\web\Request))",
"#12 /var/www/html/project_name/api/web/index.php(18): yii\base\Application->run()",
"#13 {main}"
]
}
I am using this demo: Demo
How can i resolve this error? Comment if any information required.
Aucun commentaire:
Enregistrer un commentaire