Since the last production deployment, customers can not complete checkout.
The error logs show the following message multiple times:
main.CRITICAL: Report ID: webapi-61b9fe83f0c3e; Message: Infinite loop detected, review the trace for the looping path
The Architect finds a deployed feature that should limit delivery for some specific postcodes.
The Architect sees the following code deployed in etc/webapi_rest/di. xml and etc/frontend/di. Xml

LimitRates.php:

Which step should the Architect perform to solve the issue?
Suggested Answer: C
Get Premium AD0-E722 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
17 comments · newest first
EZ
Ezekiel
12 months ago
Why would changing the plugin type fix an infinite loop? Sounds odd.
AU
Audry
1 year ago
I agree, A seems like the right move to resolve the loop.
JU
Justine
1 year ago
Wait, are we sure it's just the plugin causing this?
SH
Shalon
1 year ago
I think option A makes the most sense here.
RO
Ronny
1 year ago
Looks like an infinite loop issue, definitely needs fixing.
LE
Lenora
1 year ago
I’m a bit confused about the injected dependencies. Wouldn’t changing the session dependency just shift the problem rather than solve it?
LI
Lisbeth
1 year ago
This scenario seems similar to a practice question we did about plugin priorities. I think the 'around' plugin option makes sense here.
JO
Jonelle
1 year ago
I'm not entirely sure, but I feel like replacing the injected dependency might not address the root cause of the loop.
JU
Julie
1 year ago
I remember we discussed infinite loops in class, and I think changing the 'after' plugin to 'around' could help prevent that issue.
WE
Wenona
1 year ago
Injecting the CartRepositoryInterface and getting the cart instance directly might help bypass any issues with the session. I'll keep that in mind as a potential solution.
TU
Tuyet
1 year ago
Replacing the injected dependency with the SessionManagerInterface could be a good approach to try, since the issue seems to be related to the session.
KR
Kris
1 year ago
Hmm, the code snippet shows some plugin configuration, so I'll need to investigate how those plugins are being used and if there's a problem with the 'after' plugin.
BR
Broderick
1 year ago
This seems like a tricky issue with the checkout process. I'll need to carefully review the code and error logs to understand what's causing the infinite loop.
MI
Ming
1 year ago
The error message about the infinite loop is a good clue. I'll focus on analyzing the LimitRates.php file and how it's interacting with the checkout process.
BR
Brianne
1 year ago
Okay, let's see. I'm pretty sure the JVM crashing means we need to try a different version, so I'll go with option A.
LA
Laticia
1 year ago
Hmm, an NDR issue could have a few different causes. I'll need to consider each option and try to narrow it down.
KA
Kara
1 year ago
Pretty sure it's essential for the clients to have a full mesh for iBGP. That seems to fit the scenario.