commercetools / commercetools/commercetools-sync-java

Generic NPE error without details on product/variant import

未关闭
#1,201 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
40
派生
41
PR 合并指标
30 天内没有已合并 PR

描述

**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)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。