ACSD-64431: 요청에 쿠폰 코드가 있는 "placeOrder" 돌연변이로 인해 내부 서버 오류가 발생합니다
ACSD-64431 패치는 요청에 쿠폰 코드 정보가 포함된 placeOrder
돌연변이로 인해 주문을 성공적으로 수행하는 대신 내부 서버 오류가 발생하는 문제를 해결합니다. 이 패치는 Quality Patches Tool (QPT) 1.1.61이 설치된 경우에 사용할 수 있습니다. 패치 ID는 ACSD-64431입니다. 이 문제는 Adobe Commerce 2.4.8에서 수정됩니다.
영향을 받는 제품 및 버전
Adobe Commerce 버전에 대한 패치가 만들어졌습니다.
- Adobe Commerce(모든 배포 방법) 2.4.7-p3
Adobe Commerce 버전과 호환:
- Adobe Commerce(모든 배포 방법) 2.4.7 - 2.4.7-p4
magento/quality-patches
패키지를 최신 버전으로 업데이트하고 Quality Patches Tool에서 호환성을 확인합니다. 패치 검색 페이지. 패치 ID를 검색 키워드로 사용하여 패치를 찾습니다.문제
요청에 쿠폰 코드 정보가 포함된 placeOrder
돌연변이로 인해 주문을 성공적으로 하지 않고 내부 오류가 발생합니다.
재현 단계:
-
SKU 2836611 을(를) 사용하여 간단한 제품을 만드십시오.
-
Cart Price Rule 을(를) 만들고 Coupon 을(를)
Specific Coupon
(으)로 설정하고 TEST1234 을(를) 쿠폰 코드로 입력하십시오. -
고객 만들기:
code language-none mutation { createCustomer( input: { firstname: "John" lastname: "Doe" email: "john.doe@example.com" password: "b1b2b3l@w+" is_subscribed: true } ) { customer { firstname lastname email is_subscribed } } }
-
고객 토큰을 생성합니다. 이 토큰은 후속 요청에 사용할 수 있습니다.
code language-none mutation { generateCustomerToken(email: "john.doe@example.com", password: "b1b2b3l@w+") { token } }
-
빈 장바구니를 만듭니다. 장바구니 ID를 저장하고 후속 요청에 사용합니다.
code language-none mutation { createEmptyCart }
-
제품을 장바구니에 추가합니다.
code language-none mutation { addProductsToCart( cartId: "xxxx" cartItems: [{ quantity: 1, sku: "2836611" }] ) { cart { itemsV2 { items { product { name sku } ... on ConfigurableCartItem { configurable_options { configurable_product_option_uid value_label } } quantity } total_count page_info { page_size current_page total_pages } } } user_errors { code message } } }
-
쿠폰 적용:
code language-none mutation { applyCouponToCart(input: { cart_id: "xxxx", coupon_code: "TEST1234" }) { cart { itemsV2 { items { product { name } quantity } total_count page_info { page_size current_page total_pages } } applied_coupons { code } prices { grand_total { value currency } } } } }
-
배송 주소 설정:
code language-none mutation { setShippingAddressesOnCart( input: { cart_id: "xxxxx" shipping_addresses: [ { address: { firstname: "John" lastname: "Doe" company: "Company Name" street: ["3320 N Crescent Dr", "Beverly Hills"] city: "Los Angeles" region: "CA" region_id: 12 postcode: "90210" country_code: "US" telephone: "123-456-0000" save_in_address_book: false } } ] } ) { cart { shipping_addresses { firstname lastname company street city region { code label } postcode telephone country { code label } available_shipping_methods { carrier_code carrier_title method_code method_title } } } } }
-
배송 방법을 설정합니다.
code language-none mutation { setShippingMethodsOnCart( input: { cart_id: "xxxx" shipping_methods: [{ carrier_code: "flatrate", method_code: "flatrate" }] } ) { cart { shipping_addresses { selected_shipping_method { carrier_code carrier_title method_code method_title amount { value currency } } } } } }
-
청구 주소 설정:
code language-none mutation { setBillingAddressOnCart( input: { cart_id: "xxxx" billing_address: { address: { firstname: "John" lastname: "Doe" company: "Company Name" street: ["64 Strawberry Dr", "Beverly Hills"] city: "Los Angeles" region: "CA" region_id: 12 postcode: "90210" country_code: "US" telephone: "123-456-0000" save_in_address_book: true } } } ) { cart { billing_address { firstname lastname company street city region { code label } postcode telephone country { code label } } } } }
-
결제 방법 설정:
code language-none mutation { setPaymentMethodOnCart( input: { cart_id: "xxxx", payment_method: { code: "checkmo" } } ) { cart { selected_payment_method { code } } } }
-
주문:
code language-none mutation { placeOrder( input: { cart_id: "{{cart_id}}" } ) { orderV2 { number token } errors { message code } } }
예상 결과:
주문을 해야 합니다.
실제 결과:
다음 오류 메시지가 나타납니다."message": "Internal server error"
exception.log
에 다음 오류가 있습니다.
report.ERROR: "discount_model" value should be specifiedGraphQL (1:135)
1: mutation { placeOrder(input: {cart_id: "xxxx"}) { orderV2 { total { discounts { amount { currency value } coupon { code } } } } errors { message code } } }
패치 적용
개별 패치를 적용하려면 배포 방법에 따라 다음 링크를 사용합니다.
- Adobe Commerce 또는 Magento Open Source 온-프레미스: Quality Patches Tool 가이드의 Quality Patches Tool > 사용량
- 클라우드 인프라의 Adobe Commerce: Commerce on Cloud Infrastructure 안내서의 업그레이드 및 패치 > 패치 적용.
관련 읽기
Quality Patches Tool에 대한 자세한 내용은 다음을 참조하세요.