Error when querying email events with eventType parameter
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
Inizia dalla chiamata api_client.api_request per GET /email/public/v1/events e confronta la gestione della stringa di query con la richiesta curl funzionante nell’issue. Traccia come viene codificato eventType, quindi verifica che SENT e DELIVERED siano accettati dall’endpoint degli eventi email di HubSpot senza modificare il parametro API documentato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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}'
- Lingua principale
- Python
- Stelle
- 434
- Fork
- 126
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di HubSpot/hubspot-api-python
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
HubSpot/hubspot-api-python#497 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
HubSpot/hubspot-api-python#498 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
HubSpot/hubspot-api-python#496 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
HubSpot/hubspot-api-python#495 · 1 commento · 2 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
HubSpot/hubspot-api-python#494 ·
Tutte le issue di HubSpot/hubspot-api-python
Issue simili
-
essnmx good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
[Feature] 奇物选择添加优先级 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Giskard-AI/giskard-oss#2840 · 1 commento ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Apertaarea: repo bug perceived difficulty: 2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
yeti-platform/yeti#1380 ·