commercetools / commercetools/commercetools-sync-java

Generic NPE error without details on product/variant import

Đang mở
#1,201 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
40
Fork
41
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
When we try to import a new product and one of the variants on the product has the same key the import fails but there is no detailed message as to why. The same is the case when we try to import a new product with an existing SLUG, there is always the same, generic error message. This was working before but seems like in some update of the library or on Commercetools side it just gives generic NPE.

This is an issue when we need to report to the calling system why did the import fail.

**To Reproduce**
Steps to reproduce the behavior:
1. Import a new product with the same Slug as an existing product
2. NPE happens without any details

**Expected behavior**
Error details

**Screenshots**

![Image](https://github.com/user-attachments/assets/089d8460-c17f-4971-b4fc-8df196d4f62f)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.