Spoje-NET / php-abraflexi

PHP Library for easy interaction with economic system AbraFlexi.
MIT License
24 stars 7 forks source link

Curl Error (HTTP 0): getaddrinfo() thread failed to start #36

Open Vitexus opened 10 months ago

Vitexus commented 10 months ago

There is some problem with curl and closing its open filedescriptors :(

PHP Warning:  include(/usr/share/php/AbraFlexi/Exception.php): Failed to open stream: Too many open files in /var/lib/composer/discomp2abraflexi/composer/ClassLoader.php on line 576
PHP Stack trace:
PHP   1. {main}() /usr/share/discomp2abraflexi/discomp2abraflexi.php:0
PHP   2. SpojeNet\\Discomp\\Importer->freshItems() /usr/share/discomp2abraflexi/discomp2abraflexi.php:34
PHP   3. SpojeNet\\Discomp\\Importer->prepareCategories($categoriesRaw = [0 => \'Druhy > Počítače > PC komponenty > Paměti > DDR4 > 4GB\', 1 => \'Vyrobci - WEB > TRANSCEND > Počítače > PC komponenty > Paměti > DDR4 > 4GB\']) /usr/share/discomp2abraflexi/Discomp/Importer.php:284
PHP   4. SpojeNet\\Discomp\\Importer->categoryBranch($nodes = [0 => \'Discomp\', 1 => \'Vyrobci - WEB\', 2 => \'TRANSCEND\', 3 => \'Počítače\', 4 => \'PC komponenty\', 5 => \'Paměti\', 6 => \'DDR4\', 7 => \'4GB\']) /usr/share/discomp2abraflexi/Discomp/Importer.php:543
PHP   5. SpojeNet\\Discomp\\Importer->createBranchNode($node = \'Discomp\', $level = 0, $parent = \'\', $kod = \'39797b8d0f122a4f69bd1d29c202b691\') /usr/share/discomp2abraflexi/Discomp/Importer.php:559
PHP   6. AbraFlexi\\RO->__construct($init = \'code:39797B8D0F122A4F69BD1D29C202B6\', $options = [\'ignore404\' => TRUE]) /usr/share/discomp2abraflexi/Discomp/Importer.php:582
PHP   7. AbraFlexi\\RO->processInit($init = \'code:39797B8D0F122A4F69BD1D29C202B6\') /usr/share/php/AbraFlexi/RO.php:438
PHP   8. AbraFlexi\\RO->loadFromAbraFlexi($id = \'code:39797B8D0F122A4F69BD1D29C202B6\') /usr/share/php/AbraFlexi/RO.php:635
PHP   9. AbraFlexi\\RO->getFlexiData($suffix = \'https://server:5434/c/company/strom/code:39797B8D0F122A4F69BD1D29C202B6\', $conditions = \'\') /usr/share/php/AbraFlexi/RO.php:1558
PHP  10. AbraFlexi\\RO->performRequest($urlSuffix = \'https://server:5434/c/company/strom/code:39797B8D0F122A4F69BD1D29C202B6\', $method = \'GET\', $format = *uninitialized*) /usr/share/php/AbraFlexi/RO.php:1522
PHP  11. AbraFlexi\\RO->doCurlRequest($url = \'https://server:5434/c/company/strom/code:39797B8D0F122A4F69BD1D29C202B6\', $method = \'GET\', $format = NULL) /usr/share/php/AbraFlexi/RO.php:997
PHP  12. Composer\\Autoload\\ClassLoader->loadClass($class = \'AbraFlexi\\\\Exception\') /usr/share/php/AbraFlexi/RO.php:1302
PHP  13. Composer\\Autoload\\{closure:/var/lib/composer/discomp2abraflexi/composer/ClassLoader.php:575-577}($file = \'/var/lib/composer/discomp2abraflexi/composer/../deb/abraflexi/Exception.php\') /var/lib/composer/discomp2abraflexi/composer/ClassLoader.php:427

https://github.com/Spoje-NET/discomp2abraflexi