我有一个使用Laravel 5.2和Guzzle 6.0连接到Laravel API的Web应用程序。我注意到当我在Web应用程序上同时打开多个页面时,我通常会收到以下错误:
select *
from attribute_variations av
join variations v on av.variation_id = v.id
where av.attribute_product_variation_id = 136 and
av.variation_id in (57,73) and
exists (
select 1
from attribute_variations av2
where av.attribute_product_variation_id = av2.attribute_product_variation_id
and av2.variation_id in (57,73)
group by av.attribute_product_variation_id
having count(distinct av.variation_id) = 2
)
其中cURL error 6: Could not resolve host: <table name> (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
是数据库表的名称。检查它产生的日志文件,它会获得超时异常。
<table name>
请注意,这仅在我打开多个同时打开的页面以及让多个用户访问该站点时才会发生。
用户逐个打开页面时不会出现问题。只是在同时打开或只是垃圾邮件刷新时发生。
local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Maximum execution time of 30 seconds exceeded' in C:\localhost\...\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:503
Stack trace:...