/alidata/www/mediby2/app/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php(113)
103 $response->getStatusCode(), 104 $response->getReasonPhrase() 105 ); 106 107 $summary = static::getResponseBodySummary($response); 108 109 if ($summary !== null) { 110 $message .= ":\n{$summary}\n"; 111 } 112 113 return new $className($message, $request, $response, $previous, $ctx); 114 } 115 116 /** 117 * Get a short summary of the response 118 * 119 * Will return `null` if the response is not printable. 120 * 121 * @param ResponseInterface $response 122 * 123 * @return string|null
#0 |
+
–
/alidata/www/mediby2/app/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\Exception\RequestException::create(GuzzleHttp\Psr7\Request, GuzzleHttp\Psr7\Response) 61 function (ResponseInterface $response) use ($request, $handler) { 62 $code = $response->getStatusCode(); 63 if ($code < 400) { 64 return $response; 65 } 66 throw RequestException::create($request, $response); 67 } 68 ); 69 }; 70 }; 71 } |
#1 |
+
–
/alidata/www/mediby2/app/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(GuzzleHttp\Psr7\Response) 198 return; 199 } 200 201 try { 202 if (isset($handler[$index])) { 203 $promise->resolve($handler[$index]($value)); 204 } elseif ($index === 1) { 205 // Forward resolution values as-is. 206 $promise->resolve($value); 207 } else { 208 // Forward rejections down the chain. |
#2 |
+
–
/alidata/www/mediby2/app/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, GuzzleHttp\Psr7\Response, array(GuzzleHttp\Promise\Promise, Closure, null)) 151 if (!method_exists($value, 'then')) { 152 $id = $state === self::FULFILLED ? 1 : 2; 153 // It's a success, so resolve the handlers in the queue. 154 queue()->add(static function () use ($id, $value, $handlers) { 155 foreach ($handlers as $handler) { 156 self::callHandler($id, $value, $handler); 157 } 158 }); 159 } elseif ($value instanceof Promise 160 && $value->getState() === self::PENDING 161 ) { |
#3 |
+
–
/alidata/www/mediby2/app/vendor/guzzlehttp/promises/src/TaskQueue.php(47): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() 42 43 public function run() 44 { 45 /** @var callable $task */ 46 while ($task = array_shift($this->queue)) { 47 $task(); 48 } 49 } 50 51 /** 52 * The task queue will be run and exhausted by default when the process |
#4 |
+
–
/alidata/www/mediby2/app/vendor/guzzlehttp/promises/src/Promise.php(246): GuzzleHttp\Promise\TaskQueue->run(true) 241 private function invokeWaitFn() 242 { 243 try { 244 $wfn = $this->waitFn; 245 $this->waitFn = null; 246 $wfn(true); 247 } catch (\Exception $reason) { 248 if ($this->state === self::PENDING) { 249 // The promise has not been resolved yet, so reject the promise 250 // with the exception. 251 $this->reject($reason); |
#5 |
+
–
/alidata/www/mediby2/app/vendor/guzzlehttp/promises/src/Promise.php(223): GuzzleHttp\Promise\Promise->invokeWaitFn() 218 private function waitIfPending() 219 { 220 if ($this->state !== self::PENDING) { 221 return; 222 } elseif ($this->waitFn) { 223 $this->invokeWaitFn(); 224 } elseif ($this->waitList) { 225 $this->invokeWaitList(); 226 } else { 227 // If there's not wait function, then reject the promise. 228 $this->reject('Cannot wait on a promise that has ' |
#6 |
+
–
/alidata/www/mediby2/app/vendor/guzzlehttp/promises/src/Promise.php(267): GuzzleHttp\Promise\Promise->waitIfPending() 262 $waitList = $this->waitList; 263 $this->waitList = null; 264 265 foreach ($waitList as $result) { 266 while (true) { 267 $result->waitIfPending(); 268 269 if ($result->result instanceof Promise) { 270 $result = $result->result; 271 } else { 272 if ($result->result instanceof PromiseInterface) { |
#7 |
+
–
/alidata/www/mediby2/app/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\Promise\Promise->invokeWaitList() 220 if ($this->state !== self::PENDING) { 221 return; 222 } elseif ($this->waitFn) { 223 $this->invokeWaitFn(); 224 } elseif ($this->waitList) { 225 $this->invokeWaitList(); 226 } else { 227 // If there's not wait function, then reject the promise. 228 $this->reject('Cannot wait on a promise that has ' 229 . 'no internal wait function. You must provide a wait ' 230 . 'function when constructing the promise to be able to ' |
#8 |
+
–
/alidata/www/mediby2/app/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending() 57 return $this->then(null, $onRejected); 58 } 59 60 public function wait($unwrap = true) 61 { 62 $this->waitIfPending(); 63 64 $inner = $this->result instanceof PromiseInterface 65 ? $this->result->wait($unwrap) 66 : $this->result; 67 |
#9 |
+
–
/alidata/www/mediby2/app/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Promise\Promise->wait() 126 } 127 128 public function request($method, $uri = '', array $options = []) 129 { 130 $options[RequestOptions::SYNCHRONOUS] = true; 131 return $this->requestAsync($method, $uri, $options)->wait(); 132 } 133 134 public function getConfig($option = null) 135 { 136 return $option === null |
#10 |
+
–
/alidata/www/mediby2/app/common/extensions/Utils.php(964): GuzzleHttp\Client->request("POST", "http://39.98.50.109:8888", array("form_params" => array("api" => "library.goodsSimilar", "apiVersion" => "v1", "length" => 5, "id" => "1408", ...))) 959 * guzzle请求 960 */ 961 public static function guzzleHttp($url, $params, $method = 'GET') 962 { 963 $client = new GuzzleHttp\Client(); 964 $res = $client->request($method, $url, $params); 965 $data = []; 966 if ($res->getStatusCode() == 200) 967 $data = json_decode($res->getBody())->data; 968 return $data; 969 } |
#11 |
+
–
/alidata/www/mediby2/app/protected/controllers/BusinessController.php(754): Utils::guzzleHttp("http://39.98.50.109:8888", array("form_params" => array("api" => "library.goodsSimilar", "apiVersion" => "v1", "length" => 5, "id" => "1408", ...)), "POST") 749 'apiVersion' => 'v1', 750 'length' => 5, 751 'id' => $id, 752 'ident' => Yii::app()->params->medibyIdent, 753 ], 754 ], $method = 'POST')->goods; 755 Yii::app()->cache->set("library.goodsList.id.{$id}.length.5", $goodsListCache, Yii::app()->params->cacheExpireTime); 756 } 757 if(stristr($urlReferrer,'productCategoryDetails')){ 758 $this->breadcrumbs=[ 759 ['name' => '首页', 'url' => ['/site/index']], |
#12 |
unknown(0): BusinessController->actionGoodsDetail("1408")
|
#13 |
+
–
/alidata/www/mediby2/app/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(BusinessController, array("1408")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#14 |
+
–
/alidata/www/mediby2/app/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(BusinessController, ReflectionMethod, array("_url" => "/business/goodsDetail/1408.html", "id" => "1408")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#15 |
+
–
/alidata/www/mediby2/app/framework/web/CController.php(308): CInlineAction->runWithParams(array("_url" => "/business/goodsDetail/1408.html", "id" => "1408")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#16 |
+
–
/alidata/www/mediby2/app/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#17 |
+
–
/alidata/www/mediby2/app/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#18 |
+
–
/alidata/www/mediby2/app/framework/web/CWebApplication.php(282): CController->run("goodsDetail") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#19 |
+
–
/alidata/www/mediby2/app/framework/web/CWebApplication.php(141): CWebApplication->runController("business/goodsDetail") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#20 |
+
–
/alidata/www/mediby2/app/framework/base/CApplication.php(184): CWebApplication->processRequest() 179 public function run() 180 { 181 if($this->hasEventHandler('onBeginRequest')) 182 $this->onBeginRequest(new CEvent($this)); 183 register_shutdown_function(array($this,'end'),0,false); 184 $this->processRequest(); 185 if($this->hasEventHandler('onEndRequest')) 186 $this->onEndRequest(new CEvent($this)); 187 } 188 189 /** |
#21 |
+
–
/alidata/www/mediby2/app/index.php(19): CApplication->run() 14 15 require_once($yii); 16 require_once(dirname(__FILE__).'/common/config/aliases.php'); 17 Yii::$classMap = require_once(__ROOT__ . "/common/config/autoloadClassMap.php"); 18 require_once(__ROOT__ . "/vendor/autoload.php"); 19 Yii::createWebApplication($config)->run(); |