Open MichaelThessel opened 4 years ago
Hi @MichaelThessel. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, please, review the Magento Contributor Assistant documentation.
@MichaelThessel do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
:white_check_mark: Confirmed by @engcom-Hotel
Thank you for verifying the issue. Based on the provided information internal tickets MC-30805
were created
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
I was about to raise a similar request when I came across this one, except we see this issue in the context of DHL. So for whoever ends up working on this issue, I think the issue is wider than UPS and is happening with other carriers too (well, at least with DHL).
This problem has a significant impact on the checkout experience in our case, with some of the DHL requests taking 7s to return, then being repeated several times in a row without caching. So total time waiting is commonly 30s+.
I would also like to add some additional data to this issue. I can confirm that this happens with all shipping carriers on vanilla Magento 2.3.6.
I am managing a store that has USPS, UPS, FedEx, and DHL configured for shipping rates. Merely visiting the shopping cart page can cause several identical calls to each shipping API to be made.
Deleting an item from the cart while on the shopping cart page causes each API to be called several times each. Clicking the "Update Shopping Cart" button also causes several identical calls to each shipping API to be made.
All of these redundant shipping API calls result in some significant slowdown of checkout process.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!
Posting a comment. Issues should not be automatically closed.
Definitely still an issue for us. Don't close issues because they have no activity.
Any update on this?
I have this issue also. Any updates?
Posting a comment to not automatically closed this issue.
Still broken. Also the FedEx shipping provider in Magento 2.4.3 is still using SOAP. In the year two thousand twenty three, SOAP is still a protocol that is being used.
Preconditions (*)
Steps to reproduce (*)
Magento\Quote\Model\Quote\TotalsCollector->collectAddressTotals()
which then executes:
Magento\Shipping\Model\Rate->getAllRates()
which then executes:
Magento\Ups\Model\Carrier->_getXmlQuotes()
The problem is now that
_getXmlQuotes
does a remote request to:https://onlinetools.ups.com/ups.app/xml/Rate
which takes 2-3s per request (see:vendor/magento/module-ups/Model/Carrier.php
line 782).The problem is that the remote request to the UPS API is not cached. So in my case this is executed 3 times for each page load of the cart page. Additionally this is worsened by the fact that the cart page does 2 more API calls to:
which trigger the same extensions again resulting in 3 additional calls each. So in total for each page load of the cart page 9 identical requests to the UPS API are sent.
In case somebody else runs into this. In my case the initiating modules are:
Additionally:
While looking at vendor/magento/module-ups/Model/Carrier.php I noticed that the XML for the remote request is manually pieced together. The parameters inserted into the XML are not escaped. If any of the parameters contains i.e. '<' the entire request falls apart. Simplexml is a system requirement for M2 and the XML should be generated using a XML lib.
Expected result (*)
Actual result (*)