fix(worker): replace Forms API submission with CRM API direct #5

Merged
serge merged 1 commits from fix/worker-crm-api-direct into main 2026-05-07 16:10:11 +03:00
Owner

Worker code Forms API silently failed to create contacts (= 200 OK but pas de cr�ation r�elle), bug reproduit en prod avec serge+test1. Switch vers CRM API direct + 409 fallback PATCH.

Worker code Forms API silently failed to create contacts (= 200 OK but pas de cr�ation r�elle), bug reproduit en prod avec serge+test1. Switch vers CRM API direct + 409 fallback PATCH.
serge added 1 commit 2026-05-07 16:10:08 +03:00
Forms API (api.hsforms.com/submissions/v3/integration/submit/...) can
return 200 OK without actually creating a contact in HubSpot \xe2\x80\x94 silent
failures triggered by anti-spam filters, form configuration, or whatever
state the form GUID was left in.

Symptom in production: E2E flow completes (welcome email sent with
ref MVA-005), but contact is never created in HubSpot CRM. Reproduced
with serge+test1@mind4solutions.com on 2026-05-07.

Fix: switch to direct CRM API POST /crm/v3/objects/contacts which is
deterministic (= returns 409 if exists, error otherwise). Falls back to
PATCH on 409 to handle duplicate-email reinscriptions.

Refs: WordPress \xe2\x86\x92 static migration, post-Phase F bugfix.
serge merged commit 5f88891a83 into main 2026-05-07 16:10:11 +03:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: serge/site-mva-global-fret#5
No description provided.