MDVA-40896: 비동기 제품에 'Error: TypeError: 인수 3' 오류가 발생했습니다.
MDVA-40896 패치는 비동기 제품 대량 API에서 Error: TypeError: Argument 3 passed to Magento\Framework\Webapi\ServiceInputProcessor::process() must be of the type array, string given
오류가 표시되는 문제를 해결합니다. 이 패치는 품질 패치 도구(QPT) 1.1.15가 설치된 경우에 사용할 수 있습니다. 패치 ID는 MDVA-40896입니다. 이 문제는 Adobe Commerce 2.4.4에서 해결되었습니다.
영향을 받는 제품 및 버전
Adobe Commerce 버전에 대한 패치가 만들어졌습니다.
- Adobe Commerce(모든 배포 방법) 2.4.3
Adobe Commerce 버전과 호환:
- Adobe Commerce(모든 배포 방법) 2.4.3 - 2.4.3-p2
magento/quality-patches
패키지를 최신 버전으로 업데이트하고 Quality Patches Tool에서 호환성을 확인합니다. 패치 검색 페이지. 패치 ID를 검색 키워드로 사용하여 패치를 찾습니다.문제
비동기 제품 벌크 API에 Error: TypeError: Argument 3 passed to Magento\Framework\Webapi\ServiceInputProcessor::process() must be of the type array, string given
오류가 표시됩니다.
재현 단계:
- 다음 페이로드를 사용하여
rest/all/async/bulk/V1/products/bySKU
엔드포인트에 요청 보내기:
[
{
"product": {
"sku": "24-MB01",
"price": 36,
"extension_attributes": {
"stock_item": {
"qty": 100,
"is_in_stock": true
}
},
"custom_attributes": [
{
"attribute_code": "new",
"value": "1"
}
]
}
},
{
"product": {
"sku": "24-MB04",
"price": 28,
"extension_attributes": {
"stock_item": {
"qty": 50,
"is_in_stock": true
}
},
"custom_attributes": [
{
"attribute_code": "new",
"value": "0"
}
]
}
}
]
예상 결과:
제품 세부 사항이 반환됩니다.
실제 결과:
오류 Error: TypeError: Argument 3 passed to Magento\Framework\Webapi\ServiceInputProcessor::process() must be of the type array, string given
이(가) 발생했습니다.
패치 적용
개별 패치를 적용하려면 배포 방법에 따라 다음 링크를 사용합니다.
- 개발자 설명서에서 Adobe Commerce 또는 Magento Open Source 온-프레미스: 소프트웨어 업데이트 안내서 > 패치 적용.
- 클라우드 인프라의 Adobe Commerce: 개발자 설명서에서 업그레이드 및 패치 > 패치 적용.
관련 읽기
품질 패치 도구에 대한 자세한 내용은 다음을 참조하십시오.
QPT에서 사용할 수 있는 다른 패치에 대한 정보는 개발자 설명서에서 QPT에서 사용할 수 있는 패치를 참조하십시오.