Skip to content

Commit 699ec8a

Browse files
AnujNehraAnujNehra
authored andcommitted
ACP2E-1986: Rest api V1/carts/mine/estimate-shipping-methods show 500 Error
1 parent 41883fa commit 699ec8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,11 @@ protected function _createFromArray($className, $data)
293293
// Converts snake_case to uppercase CamelCase to help form getter/setter method names
294294
// This use case is for REST only. SOAP request data is already camel cased
295295
$camelCaseProperty = SimpleDataObjectConverter::snakeCaseToUpperCamelCase($propertyName);
296-
$methodName = $this->getNameFinder()->getGetterMethodName($class, $camelCaseProperty);
296+
try {
297+
$methodName = $this->getNameFinder()->getGetterMethodName($class, $camelCaseProperty);
298+
} catch (\LogicException $e) {
299+
$this->processInputError([$camelCaseProperty]);
300+
}
297301
if (!isset($this->methodReflectionStorage[$className . $methodName])) {
298302
$this->methodReflectionStorage[$className . $methodName] = $class->getMethod($methodName);
299303
}

0 commit comments

Comments
 (0)