Error when querying email events with eventType parameter
まだ誰も着手していません。
評価
調査の方向性
GET /email/public/v1/events に対する api_client.api_request 呼び出しから始め、クエリ文字列の処理を、issue にある動作する curl リクエストと比較してください。eventType がどのようにエンコードされるかを追跡し、その後、ドキュメントに記載された API パラメーターを変更せずに、SENT と DELIVERED が HubSpot のメールイベントエンドポイントで受け付けられることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Issue Description
When using the HubSpot API client to query email events, I encountered an error with the eventType parameter format. The API rejects the comma-separated list within curly braces:
response = api_client.api_request({
"method": "GET",
"path": "/email/public/v1/events",
"qs": {
"eventType": "{SENT,DELIVERED}",
}
})
print(response.content.decode('utf-8'))
This results in the following error:
{"status":"error","message":"Invalid input JSON on line -1, column -1: Cannot deserialize value of type `com.hubspot.email.events.EventType` from String \"{SENT,DELIVERED}\": not one of the values accepted for Enum class: [DROPPED, UNBOUNCE, STATUSCHANGE, DELIVERED, FORWARD, BOUNCE, REPLY, PRINT, PROCESSED, UNSUBSCRIBED, SUPPRESSED, CLICK_ON_IDENTIFIED_LINK, SENT, SELECTED, SPAMREPORT, OPT_IN_CHANGE, DEFERRED, ERROR, OPEN, MTA_DROPPED, CLICK]","correlationId":"3196b1fe-b2fb-4498-b8f5-afa46570a809"}
Additional Information
I verified that the API endpoint itself works correctly with the following curl command, which successfully returns results:
curl --request GET --url 'https://api.hubapi.com/email/public/v1/events?eventType={SENT,DELIVERED}'
- 主要言語
- Python
- スター
- 434
- フォーク
- 126
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
HubSpot/hubspot-api-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
HubSpot/hubspot-api-python#497 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
HubSpot/hubspot-api-python#498 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
HubSpot/hubspot-api-python#496 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
HubSpot/hubspot-api-python#495 · コメント 1 件 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
HubSpot/hubspot-api-python#494 ·
HubSpot/hubspot-api-python の issue をすべて見る
似ている issue
-
triage/confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
NousResearch/hermes-agent#118866 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
apache/cloudstack#14222 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100