Bulk API 2.0 always returns 'None' when getting Job successful/Failed/Unprocessed record results
まだ誰も着手していません。
評価
調査の方向性
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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
forcedotcom/SalesforcePy のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
forcedotcom/SalesforcePy#77 ·
-
Deprecate logout()オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
forcedotcom/SalesforcePy#76 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
forcedotcom/SalesforcePy#68 · コメント 2 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
forcedotcom/SalesforcePy#67 · コメント 2 件 ·
forcedotcom/SalesforcePy の issue をすべて見る
似ている issue
-
feedback simulation workshop
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
githubnext/gh-aw-workshop#4455 ·
メンテナーはふだん 1 日以内に返信
-
Triage 🩺
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[BUG] Container scenario crashes without expected_recovery_time, kube DNS example uses retry_waitオープンneeds-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
krkn-chaos/krkn#1627 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NousResearch/hermes-agent#136483 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信