Call to submitContactForm resulted in 201 response. Created

Created on 18 June 2025, 15 days ago

Problem/Motivation

When a user signs up, an Error is created:

Call to submitContactForm resulted in 201 response. Created

This feels like a false positive and perhaps shouldn't be logged as an error. I've traced this down to ConstantContact::handleResponse where it checks if the response is 200, or 201 and method is 'createContact' then it logs things as info, otherwise things are logged as errors. Tracing 'createContact' it's only called from ConstantContact::postContact. But ConstantContact::submitContactForm docs state that the method replaces postContact as of v2.

Proposed resolution

We don't need to check for method, only status code in handleResponse as only unsubscribeContact and submitContactForm methods call handleResponse, the other calls from postContact are deprecated as of v2 iiuc.

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Baysaa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024