Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jesper Lysgaard 16 posts 76 karma points
    Dec 03, 2015 @ 13:41
    Jesper Lysgaard
    0

    Nedfinity Mailchimp MVC error 500

    I am trying to implement the Nedfinity Mailchimp MVC package in an Umbraco 7 solution. It works fine until you try to add an existing email adress into mailchimp. I get this remote server error 500:

    [MailChimpApiException: Error while making API call: {"status":"error","code":214,"name":"List_AlreadySubscribed","error":"[email protected] is already subscribed to the list."}]
    

    Has anyone of you done a exceptionhandler for a remote server 500 error?

    Or is there perhaps another solution to this?

    My implementation is close to what Nedfinity suggests:

    <div class="mailchimp-subscription">
    
        @if (TempData["MailChimpSubscribeSuccessMessage"] != null)
        {
    
            <div class="success-message">
                @Html.Raw(TempData["MailChimpSubscribeSuccessMessage"])
            </div>
    
    
        }
        else
        {
    
            using (Html.BeginUmbracoForm<MailChimpSurfaceController>("Subscribe", new { id = "Nedfinity_MailchimpSubscription" }))
            {
                <fieldset>
                    @Html.ValidationSummary()
    
                    <div class="input-group input-group-sm">
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-envelope"></span>
                        </span>
                        @Html.TextBoxFor(m => m.EmailAddress, new { @class = "form-control", placeholder = "E-mail addresse" }) 
                        @Html.AntiForgeryToken()
                        <input type="submit" class="form-control" value="@Umbraco.GetDictionaryValue("NedfinityMailChimp.SubscribeButtonText")" />     
                    </div>
                    </fieldset>
            }
        }
    </div>
    

    Any ideas anyone?

    /Jesper

  • Samuel Watts 5 posts 75 karma points
    Jun 08, 2017 @ 11:42
    Samuel Watts
    0

    Not an answer but can i ask where you are applying the listid for the mailchimp list ?

    thanks, Sam

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies