adyen-magento2
adyen-magento2 copied to clipboard
Slow admin order generation with Point of Sale POS
Hello Hope you are doing great.
We have enabled the Point of Sale (POS) integration with Cloud API, we have an extreme loading time when we create backend orders.
Magento 2.4.3-pq Adyen: 8.6.0
We have seen the php slow log and this is making the order generation slow:
[30-Sep-2022 11:07:31] [pool droner.dk] pid 3948189 script_filename = /var/www/droner.dk/public_html/pub/index.php [0x00007fdcbec1afa0] curl_exec() /var/www/droner.dk/public_html/vendor/adyen/php-api-library/src/Adyen/HttpClient/CurlClient.php:331 [0x00007fdcbec1aec0] curlRequest() /var/www/droner.dk/public_html/vendor/adyen/php-api-library/src/Adyen/HttpClient/CurlClient.php:429 [0x00007fdcbec1a600] requestHttp() /var/www/droner.dk/public_html/vendor/adyen/php-api-library/src/Adyen/HttpClient/CurlClient.php:55 [0x00007fdcbec1a560] requestJson() /var/www/droner.dk/public_html/vendor/adyen/php-api-library/src/Adyen/Service/AbstractResource.php:100 [0x00007fdcbec1a1f0] request() /var/www/droner.dk/public_html/vendor/adyen/php-api-library/src/Adyen/Service/PosPayment.php:97 [0x00007fdcbec1a150] getConnectedTerminals() /var/www/droner.dk/public_html/vendor/adyen/module-payment/Helper/ConnectedTerminals.php:73 [0x00007fdcbec19ef0] getConnectedTerminals() /var/www/droner.dk/public_html/vendor/adyen/module-payment/Block/Form/PosCloud.php:53 [0x00007fdcbec19e30] getConnectedTerminals() /var/www/droner.dk/public_html/vendor/adyen/module-payment/view/adminhtml/templates/form/pos_cloud.phtml:19
Hi @dronerdk,
From our end we didn't have any issues related to speed. Would it be possible to provide more details, such as the requests shown in the network tab on your browser, to see which specific requests are taking a lot of time to terminate?
Thanks, Jean Adyen
Hi @dronerdk,
This issue will be closed due to inactivity. If more information can be provided, it can be re-opened so that we attempt to replicate it.
Thanks, Jean Adyen
We still have this issue. It is only when we try to generate an order in admin. In frontend we can easy get the terminal to be in checkout and create the order. We face the issue in the creating of the order after we have inserted the items for the order. We see in our php-fpm-slow log that this is the issue: [10-Jan-2023 13:54:30] [pool droner.dk] pid 873173 script_filename = /var/www/droner.dk/public_html/pub/index.php [0x00007fc608617870] curl_exec() /var/www/droner.dk/public_html/vendor/adyen/php-api-library/src/Adyen/HttpClient/CurlClient.php:331 [0x00007fc6086177e0] curlRequest() /var/www/droner.dk/public_html/vendor/adyen/php-api-library/src/Adyen/HttpClient/CurlClient.php:429 [0x00007fc6086175e0] requestHttp() /var/www/droner.dk/public_html/vendor/adyen/php-api-library/src/Adyen/HttpClient/CurlClient.php:55 [0x00007fc608617540] requestJson() /var/www/droner.dk/public_html/vendor/adyen/php-api-library/src/Adyen/Service/AbstractResource.php:100 [0x00007fc608617480] request() /var/www/droner.dk/public_html/vendor/adyen/php-api-library/src/Adyen/Service/PosPayment.php:97 [0x00007fc6086173e0] getConnectedTerminals() /var/www/droner.dk/public_html/vendor/adyen/module-payment/Helper/ConnectedTerminals.php:73 [0x00007fc608617180] getConnectedTerminals() /var/www/droner.dk/public_html/vendor/adyen/module-payment/Block/Form/PosCloud.php:98 [0x00007fc6086170c0] getConnectedTerminals() /var/www/droner.dk/public_html/vendor/adyen/module-payment/view/adminhtml/templates/form/pos_cloud.phtml:19
When we try to select the terminal as payment and try to save the order we get this after some time. We see sometimes the payment in the terminal: Order saving error: Could not connect to Adyen (https://terminal-api-live.adyen.com/sync). Please check your internet connection and try again. (Network error [errno 28]: Operation timed out after 120001 milliseconds with 0 out of 0 bytes received)
