Automattic / Automattic/jetpack

Mailchimp block: Subscribing with an unsubbed address results in error / failure

Open
#21,153 0 comments 0 reactions 0 assignees View on GitHub
[Block] Mailchimp [Plugin] Jetpack [Pri] Low Bug Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Steps to Reproduce

1. Make sure you have a WP site connected to a valid Mailchimp account and list.
2. Add a Mailchimp block to any page.
3. Subscribe to the list with the block.
4. Unsubscribe.
5. Try to subscribe again with the same email address.
6. Note that this is the error you see:
![Screen Shot 2021-09-22 at 10 15 58](https://user-images.githubusercontent.com/22805865/134360705-8a1843fa-79ad-40f8-bba0-e77d1ed7d417.png)

Checking the Network tab of the dev tools this is what I see:

```
{
"error": "member_in_compliance_state",
"message": "Mailchimp Error: EMAIL ADDRESS is in a compliance state due to unsubscribe, bounce, or compliance review and cannot be subscribed."
}
```

### A clear and concise description of what you expected to happen.

The user should be subscribed to the list again. This is properly managed with Gravity Forms and with MC4WP.

If it's not possible to update our Mailchimp block integration to allow unsubbed subscribers to resubscribed, then the error messaging should indicate that in a user-friendly way. Something like:

> Because you have previously unsubscribed from this Mailchimp list, we're not able to subscribe you here again. Please contact the site owner directly and they can help you to subscribe again.

### What actually happened

The error I see confused me as to why I'm not able to subscribe.

### Other information

_No response_

### Operating System

macOS

### OS Version

_No response_

### Browser

Chrome/Chromium, Firefox, Safari

### Browser Version(s)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the Jetpack Mailchimp block integration and reproduce the unsubscribe/resubscribe flow while inspecting the Network request. Done means either the previously unsubscribed address can subscribe again or the block shows a clear, user-friendly explanation of why Mailchimp rejects it.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.