APIs & Integrations

jbrillante
Participant

Single Send API returned internal error

Hi, Hubspot Single-send API returned the error below (internal error") with:
"correlationId":"cb322e69-37b6-4af9-a9fd-1252f897ac89",
"requestId":"2dbd7db3d54fdf253e45ab1bf1889ce7"

I can't see anything obviously wrong with the message, the email template (which we use often and haven't changed) or the contact email -- can you look it up with correlation/requestIDs and let me know what the actual issue was? or was it a one-off, server-hiccup on your side?

THanks!
Joe Brillante

Hubspot ERROR: emailTemplateID=18 / 5304216321, Hubspot error: internal error
curl url=https://api.hubapi.com//email/public/v1/singleEmail/send/?hapikey=xxx , POST={"emailId":"5304216321","customProperties":[
{"name":"email","value":"xxx.yyyy@zzz.com"}
,
{"name":"site_name","value":"#456 - xxx, WA INT 2 (Interior #2)"}
,
{"name":"cam_down_date","value":"July 2, 2018 at 11:31 am EST"}
,
{"name":"cam_down_time","value":"July 2, 2018 at 11:31 am EST"}
,
{"name":"CS_rep_name","value":"xx Yy"}
,
{"name":"CS_rep_DID","value":"(404) 555-1489"}
,
{"name":"Dev_flag","value":""}
,
{"name":"Dev_originallyIntendedFor","value":""}
],"message":{"to":"xxx.yyyy@zzz.com"}}, result=
{"status":"error","message":"internal error","correlationId":"cb322e69-37b6-4af9-a9fd-1252f897ac89","requestId":"2dbd7db3d54fdf253e45ab1bf1889ce7"}

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Single Send API returned internal error

Hi @jbrillante,

It's likely just a one-off error; while our error rates are extremely low, there's always the possibility of network latency or other transient issues resulting in timeouts or server errors. In general, a retry should be all it takes to resolve the error; you can include a sendId parameter with each send to make sure that you never send a duplicate email due to retry logic.

If you see errors like this persist even after retries, then it's possible there's something wrong; in cases like that, feel free to reach out here on the forum!

0 Upvotes