Make AuthToken Error.
500 Internal Server Error - RuntimeException
Stack Trace
-
in src/Biz/CloudPlatform/Client/AbstractCloudAPI.php at line 206
$matched = preg_match('/:\/\/.*?(\/.*)$/', $url, $matches);
if (!$matched) {
throw new \RuntimeException('Make AuthToken Error.');
}
$text = $matches[1]."\n".json_encode($params)."\n".$this->secretKey;
-
at
AbstractCloudAPI
->_makeAuthToken
('/v1/resources/ecc45263534449c6b99c7dc213af0f7c', array())
in src/Biz/CloudPlatform/Client/AbstractCloudAPI.php at line 144 -
at
AbstractCloudAPI
->_request
('GET', '/resources/ecc45263534449c6b99c7dc213af0f7c', array(), array('Content-type: application/json'))
in src/Biz/CloudPlatform/Client/FailoverCloudAPI.php at line 26 -
at
FailoverCloudAPI
->_request
('GET', '/resources/ecc45263534449c6b99c7dc213af0f7c', array(), array())
in src/Biz/CloudPlatform/Client/AbstractCloudAPI.php at line 86 -
at
AbstractCloudAPI
->get
('/resources/ecc45263534449c6b99c7dc213af0f7c')
in src/Biz/File/Service/Impl/CloudFileImplementorImpl.php at line 35 - at CloudFileImplementorImpl ->getFullFile (array('id' => '266', 'globalId' => 'ecc45263534449c6b99c7dc213af0f7c', 'hashId' => 'course-activity-134/20190711023237-8er6lp5xa5oo0000', 'targetId' => '134', 'targetType' => 'course-activity', 'useType' => null, 'filename' => '新建销售单.mp4', 'ext' => 'mp4', 'fileSize' => '2392190', 'etag' => 'course-activity-134/20190711023237-8er6lp5xa5oo0000', 'length' => '118', 'description' => null, 'status' => 'ok', 'convertHash' => 'course-activity-134/20190711023237-8er6lp5xa5oo0000', 'convertStatus' => 'none', 'convertParams' => array(), 'metas' => array(), 'metas2' => array(), 'type' => 'video', 'storage' => 'cloud', 'isPublic' => '0', 'canDownload' => '0', 'usedCount' => '1', 'updatedUserId' => '667', 'updatedTime' => '1562826757', 'createdUserId' => '667', 'createdTime' => '1562826757', 'audioConvertStatus' => 'doing', 'mp4ConvertStatus' => 'none'))
-
at
call_user_func_array
(array(object(CloudFileImplementorImpl), 'getFullFile'), array(array('id' => '266', 'globalId' => 'ecc45263534449c6b99c7dc213af0f7c', 'hashId' => 'course-activity-134/20190711023237-8er6lp5xa5oo0000', 'targetId' => '134', 'targetType' => 'course-activity', 'useType' => null, 'filename' => '新建销售单.mp4', 'ext' => 'mp4', 'fileSize' => '2392190', 'etag' => 'course-activity-134/20190711023237-8er6lp5xa5oo0000', 'length' => '118', 'description' => null, 'status' => 'ok', 'convertHash' => 'course-activity-134/20190711023237-8er6lp5xa5oo0000', 'convertStatus' => 'none', 'convertParams' => array(), 'metas' => array(), 'metas2' => array(), 'type' => 'video', 'storage' => 'cloud', 'isPublic' => '0', 'canDownload' => '0', 'usedCount' => '1', 'updatedUserId' => '667', 'updatedTime' => '1562826757', 'createdUserId' => '667', 'createdTime' => '1562826757', 'audioConvertStatus' => 'doing', 'mp4ConvertStatus' => 'none')))
in vendor/codeages/biz-framework/src/Service/ServiceProxy.php at line 36 -
at
ServiceProxy
->__call
('getFullFile', array(array('id' => '266', 'globalId' => 'ecc45263534449c6b99c7dc213af0f7c', 'hashId' => 'course-activity-134/20190711023237-8er6lp5xa5oo0000', 'targetId' => '134', 'targetType' => 'course-activity', 'useType' => null, 'filename' => '新建销售单.mp4', 'ext' => 'mp4', 'fileSize' => '2392190', 'etag' => 'course-activity-134/20190711023237-8er6lp5xa5oo0000', 'length' => '118', 'description' => null, 'status' => 'ok', 'convertHash' => 'course-activity-134/20190711023237-8er6lp5xa5oo0000', 'convertStatus' => 'none', 'convertParams' => array(), 'metas' => array(), 'metas2' => array(), 'type' => 'video', 'storage' => 'cloud', 'isPublic' => '0', 'canDownload' => '0', 'usedCount' => '1', 'updatedUserId' => '667', 'updatedTime' => '1562826757', 'createdUserId' => '667', 'createdTime' => '1562826757', 'audioConvertStatus' => 'doing', 'mp4ConvertStatus' => 'none')))
in src/Biz/File/Service/Impl/UploadFileServiceImpl.php at line 78 - at UploadFileServiceImpl ->getFullFile ('266')
-
at
call_user_func_array
(array(object(UploadFileServiceImpl), 'getFullFile'), array('266'))
in vendor/codeages/biz-framework/src/Service/ServiceProxy.php at line 36 -
at
ServiceProxy
->__call
('getFullFile', array('266'))
in src/Biz/Activity/Type/Video.php at line 99 -
at
Video
->get
('105')
in src/Biz/Activity/Service/Impl/ActivityServiceImpl.php at line 445 -
at
ActivityServiceImpl
->fetchMedia
(array('id' => '199', 'title' => '门店系统使用(新建销售单)', 'remark' => null, 'mediaId' => '105', 'mediaType' => 'video', 'content' => null, 'length' => '118', 'fromCourseId' => '134', 'fromCourseSetId' => '130', 'fromUserId' => '667', 'startTime' => '0', 'endTime' => '0', 'createdTime' => '1559634396', 'updatedTime' => '0', 'copyId' => '0', 'migrateLessonId' => '0', 'finishType' => 'end', 'finishData' => '1'))
in src/Biz/Activity/Service/Impl/ActivityServiceImpl.php at line 29 - at ActivityServiceImpl ->getActivity ('199', true)
-
at
call_user_func_array
(array(object(ActivityServiceImpl), 'getActivity'), array('199', true))
in vendor/codeages/biz-framework/src/Service/ServiceProxy.php at line 36 -
at
ServiceProxy
->__call
('getActivity', array('199', true))
in src/AppBundle/Controller/Course/CourseController.php at line 146 -
at
CourseController
->calculateCategoryTag
(array('id' => '134', 'courseSetId' => '130', 'title' => '', 'subtitle' => '', 'courseSetTitle' => '门店系统使用', 'learnMode' => 'freeMode', 'expiryMode' => 'forever', 'expiryDays' => '0', 'expiryStartDate' => '0', 'expiryEndDate' => '0', 'summary' => null, 'goals' => array(), 'audiences' => array(), 'isDefault' => '1', 'maxStudentNum' => '0', 'status' => 'published', 'seq' => '0', 'creator' => '667', 'isFree' => '1', 'price' => '0.00', 'vipLevelId' => '0', 'buyable' => '1', 'tryLookable' => '1', 'tryLookLength' => '3', 'watchLimit' => '0', 'services' => array(), 'taskNum' => '13', 'compulsoryTaskNum' => '13', 'lessonNum' => '13', 'publishLessonNum' => '13', 'studentNum' => '60', 'teacherIds' => array('667'), 'parentId' => '0', 'createdTime' => '1559634265', 'updatedTime' => '1630717570', 'ratingNum' => '0', 'rating' => '0', 'noteNum' => '0', 'buyExpiryTime' => '0', 'threadNum' => '0', 'type' => 'normal', 'approval' => '0', 'income' => '0.00', 'originPrice' => '0.00', 'coinPrice' => '0.00', 'originCoinPrice' => '0.00', 'showStudentNumType' => 'opened', 'giveCredit' => '0', 'about' => null, 'locationId' => '0', 'address' => '', 'deadlineNotify' => 'none', 'daysOfNotifyBeforeDeadline' => '0', 'useInClassroom' => 'single', 'singleBuy' => '1', 'freeStartTime' => '0', 'freeEndTime' => '0', 'locked' => '0', 'cover' => null, 'enableFinish' => '1', 'materialNum' => '0', 'maxRate' => '100', 'serializeMode' => 'none', 'showServices' => '0', 'recommended' => '0', 'recommendedSeq' => '0', 'recommendedTime' => '0', 'categoryId' => '6', 'hitNum' => '9538', 'courseType' => 'default', 'rewardPoint' => '0', 'taskRewardPoint' => '0', 'enableAudio' => '0', 'isHideUnpublish' => '0'))
in src/AppBundle/Controller/Course/CourseController.php at line 108 - at CourseController ->showAction (object(Request), '134', 'reviews')
-
at
call_user_func_array
(array(object(CourseController), 'showAction'), array(object(Request), '134', 'reviews'))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 144 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 64 -
at
HttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 69 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 36