Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

discount code importer is not working

オープン
#1,585 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, node.js
領域
api, cli

調査の方向性

まず、生成した割引コードファイルを使って、ドキュメント化された sphere import コマンドと DiscountCodeImport の例を再現します。Importer モジュールと generator モジュールを追跡して、失敗が報告されなくなる箇所を見つけます。割引コードが正常にインポートされ、エラーが確認でき、要求された並行性の動作が検証できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Support reference number

https://jira.commercetools.com/servicedesk/customer/portal/1/SUPPORT-9100

Description

I am trying the following doc to import and export coupons from CT, and it is not connecting to CT.

for Importer module, tried the following :

sphere import -t discountCode -f ./R3G2F_Coupons.json --authProtocol https --authHost https://auth.att.us-east-1.aws.commercetools.com --protocol https --host https://api.att.us-east-1.aws.commercetools.com --accessToken 5mZcYvXQ2kq7NYlfr9Hb7DNncoKxuEFV

Code :
const discountCodeImport = new DiscountCodeImport(options);

discountCodeImport.run(codes)
.then(() => {
discountCodeImport.summaryReport();
// handle successful import
})
.catch((error) => {
// handle error
});

Expected Behavior

It should be creating coupons by reading from the files generated by generator module.

Current Behavior

It is not importing discount codes and not even showing any errors on why its failing.

Context

We are trying to create a million discount codes using this feature, but its not working.

Possible Solution

Please fix the importer module, so that it can import the generated discount codes with 500 concurrent streams.

主要言語
JavaScript
スター
77
フォーク
70
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

commercetools/nodejs のほかの issue

commercetools/nodejs の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。