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

Bulk API 2.0 always returns 'None' when getting Job successful/Failed/Unprocessed record results

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

BaseRequest.request から始め、成功した Job、失敗した Job、未処理の Job の結果を取得するために使われている呼び出しを追跡します。これらの CSV 応答について、JSON の処理を Salesforce のドキュメントと比較します。完了とは、SalesforcePy が None ではなく CSV レコードの結果を返すことです。

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

説明

When trying to get Job successful/Failed/Unprocessed record results, SalesforcePy always returns None.

Readthedocs documentation for SalesforcePy shows the usage here and states that a CSV with records is returned:
https://salesforcepy.readthedocs.io/en/latest/examples.html#get-job-successes

But when I directly make calls to the appropriate endpoints without using SalesforcePy, I get the correct results.
These are the very same endpoints that SalesforcePy is calling too.

It seems the problem is that SalesforcePy's BaseRequest.request method attempts to return the response in JSON under all circumstances

However, SF documentation states that when getting Job successful/Failed/Unprocessed record results, the response body is CSV:
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/get_job_successful_results.htm

So in these cases, an exception is thrown in the BaseRequest.request method because the CSV cannot be converted to JSON, which in turn fails to update the response variable, and keeps on returning its default value of None

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

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

forcedotcom/SalesforcePy のほかの issue

forcedotcom/SalesforcePy の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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