revolunet / react-mailchimp-subscribe

React subscribe form for Mailchimp.
https://revolunet.github.io/react-mailchimp-subscribe/
244 stars 49 forks source link

Recipient "" has too many recent signup requests #33

Open ScottAgirs opened 5 years ago

ScottAgirs commented 5 years ago

Trying to use with Formik, with the code:

const url =
  'https://twosquarepixels.us20.list-manage.com/subscribe/post?u=69f211e10523fc65810fe216a&id=cb44006301';

..

  <MailchimpSubscribe
            url={url}
            render={({ subscribe, status, message }) => (
               <Formik
                  onSubmit={values => {
                    console.log({ values }); // values: { email: "my@email.com" }
                    subscribe(values);
                  }}
                  initialValues={{ email: '' }}
                  render={() => {
                    return (
                      <Form id="mc-form">
                        <InputField>
                          <Field
                            name="email"
                            type="email"
                            className="control"
                            placeholder="Enter your email"
                            required="required"
                            id="mc-email"
                          />
                        </InputField>

                        <button type="submit">
                            Subscribe
                        </button>
                        <label className="mt10" htmlFor="mc-email" />
                      </Form>
                    );
                  }}
                />
               )}
          />

Getting this error:

Recipient "" has too many recent signup requests
dijs commented 5 years ago

Did you figure this issue out? I am having the exact same one.

ScottAgirs commented 5 years ago

Did you figure this issue out? I am having the exact same one.

I did. Check all of your required fields on your Mailchimp dashboard, ensure there are no fields that you are requiring on Mailchimp, but not passing from your app's component.

In my case, I had a custom field (CustomField) which I added in past and forgot about.

The error was not very specific, but when decrypted - the error essentially was saying that I am passing a field with an empty value. Since the field CustomField was not present in my form Mailchimp interpreted the value of CustomField to be "", and complained.

Edit:

Sorry, this is actually for another, similar error.

The error that I originally asked about here, was also due to a value not being passed - still the solution should be the same - check the fields and ensure you are passing required fields and that values are actually being passed.

dijs commented 5 years ago

I had a few different issues. But I think the one which caused this specific error was sending email and not the uppercased EMAIL property.

Mailchimp needs to work on their error messages.

lukebrandonfarrell commented 5 years ago

@dijs solution works, we can close this issue?