cancel
Showing results for 
Search instead for 
Did you mean: 

Validated email address getting an error when setting up campaign

Highlighted
Frequent Visitor

Validated email address getting an error when setting up campaign

We've been successfully using the API to send email newsletters for some time now for a client (Bay Area Reporter), but suddenly the past 2 weeks it has not worked.  When I check/test the scripting  I am getting a JSON error response that says 

error_key = http.status.bad_request

error_message = Please enter a valid email address.
I have checked and their email address IS verified.  I am able to create a campaign by logging into their Custom Contact account and sending the email that way.  I double checked the JSON being sent and everything appears to be correct.   I'll copy and paste exactly what we are sending below (note, this is not for this account that I'm posting from - it is for a client account).

What are we suddenly doing wrong?  I can't figure it out.

JSON:

{"name":"Bay Area Reporter ENewsletter 2018-12-14","subject":"Bay Area Reporter ENewsletter :: Dec 14, 2018","from_name":"Bay Area Reporter","from_email":"xxxxxx","reply_to_email":"xxxxxxx","email_content":"<custom name='opencounter' type='tracking'>\r<html>\r<head>\r<meta HTTP-EQUIV='content-type' CONTENT='text\/html;charset=ISO-8859-1'>\r<title><\/title>\r<style type='text\/css'>\r\tA { text-decoration: none; } \r\tA:link { color: #9e0b0f; text-decoration: none; } \r\tA:visited { text-decoration: none; } \r\tA:active { color: #696969; text-decoration: underline; } \r\tA:hover { text-decoration: underline; color:#9e0b0f} \r\tBODY, TD, P, UL, OL { font-family: 'Tahoma', sans-serif; font-weight:400; font-size: 16px; color: #000000; } \r\th1 {color:#ccc; margin: 20px 10px 5px 10px; float:right; font-family: 'Tahoma', sans-serif; font-size:22px;}\r\th2 {color:#fff; margin: 0px 10px 10px 10px; float:right; font-family:'Tahoma', sans-serif; font-size:20px;} \r\th3 {margin-top:0px; margin-bottom:4px; color:#000; font-family:'Tahoma', sans-serif; font-size:12pt;  line-height:110%; text-decoration:none;}\r\th3 a:link {color:#9e0b0f; text-decoration:none;}\r\th3 a:visited {color:#9e0b0f; text-decoration:none;}\r\th3 a:hover {color:#000;}\r\th4 {margin-top:0px; margin-bottom:10px; color:#000; font-family:'Tahoma', sans-serif; font-size:14pt; line-height:110%; text-decoration:none; border-bottom:1px dotted #999999;}\r\th5 {margin-top:0px; margin-bottom:4px; color:#000; font-family:'Tahoma', sans-serif; font-size:12pt; line-height:110%; text-decoration:none;}\r\th5 a:link {color:#000; text-decoration:none;}\r\th5 a:visited {color:#000; text-decoration:none;}\r\th5 a:hover {color:#9e0b0f;}\r\t.sectionheader {margin-top:0px; margin-bottom:4px; color:#000; font-family:'Tahoma', sans-serif; font-size:18px; line-height:110%; text-decoration:none;}\r\t.sectionheader a:link {color:#000; text-decoration:none;}\r\t.sectionheader a:visited {color:#000; text-decoration:none;}\r\t.sectionheader a:hover {color:#9e0b0f;}\r<\/style>\r<\/head>\r<body bgcolor='#FFF' text='#000000' style='margin:0;'>\r<div align='center'>\r<div style='width: 100%; padding-top:10px;'>\r<a href='https:\/\/www.sfsymphony.org\/Buy-Tickets\/2018-19\/New-Year%E2%80%99s-Gaiety-Peaches-Christ-and-the-SF-Sympho... src='http:\/\/www.queeryme.com\/display\/viewimage_ad.php?id=3467' border='0'><\/a><br>\r<\/div>\r<div style='width: 100%; padding:10px 0px; margin:10px 0px; border-bottom:10px solid #930b0f;'>\r<table border='0' cellspacing='0' cellpadding='0' align='center' width='728'>\r\t<tr><td> <div style='margin: 10px 0px 0px 10px; float:left;'><a href='http:\/\/www.ebar.com' target='new'><img src='http:\/\/www.ebar.com\/images\/logo_noheader.png'><\/a><\/div><\/td>\r               <td> <div style='margin: 10px 0px 0px 10px; float:right;'><h5><i>Thursday, December 13, 2018<\/i><\/h5><\/div><\/td><\/tr><\/table>\r<\/div>\r<div style='width: 100%; padding-top:10px;'>\r<table border='0' cellspacing='0' cellpadding='0' align='center' width='728'>\r\t<tr><td width='10' bgcolor='#fff'><\/td><td width='398' bgcolor='#fff' valign='top'>\r\t\t\r\t\t\t\t\t<span class=\"sectionheader\"><a href=\"http:\/\/www.ebar.com\/news\">News<\/a><\/span>\r\t\t\t\t\t<hr color=\"#9e0b0f\">\r\t\t\t\t\t<a href='https:\/\/www.ebar.com\/news\/news\/news\/\/269448' target='new'><img src='http:\/\/www.queeryme.com\/display\/viewimage_story_preview.php?application_id=0&id=269448&maxwidth=150' align='left' border='0' style='float:left; margin-right:10px; margin-bottom:10px;'><\/a><h3><a href='https:\/\/www.ebar.com\/news\/news\/news\/\/269448' target='new'>Gay trailblazer leaves office: Yeager eyes Senate run<\/a><\/h3><div style='color:#000; font-family:sans-serif; font-size:10pt;'>In his 1999 book about the first LGBT people elected to public office in the U.S., Ken Yeager noted that being a politician was &quot;an occupation where the words &#039;heterosexuals only&#039; might as well be stamped in big letters.&quot;<\/div><br clear='all'><a href='https:\/\/www.ebar.com\/news\/news\/news\/\/269447' target='new'><img src='http:\/\/www.queeryme.com\/display\/viewimage_story_preview.php?application_id=0&id=269447&maxwidth=150' align='left' border='0' style='float:left; margin-right:10px; margin-bottom:10px;'><\/a><h3><a href='https:\/\/www.ebar.com\/news\/news\/news\/\/269447' target='new'>Activists plan alternative to AIDS 2020 <\/a><\/h3><div style='color:#000; font-family:sans-serif; font-size:10pt;'>Global HIV advocates plan to hold an alternative meeting in Mexico City to coincide with the International AIDS Conference in July 2020, as organizers of that confab decline to move it out of the Bay Area.<\/div><br clear='all'><a href='https:\/\/www.ebar.com\/news\/news\/news\/\/269458' target='new'><img src='http:\/\/www.queeryme.com\/display\/viewimage_story_preview.php?application_id=0&id=269458&maxwidth=150' align='left' border='0' style='float:left; margin-right:10px; margin-bottom:10px;'><\/a><h3><a href='https:\/\/www.ebar.com\/news\/news\/news\/\/269458' target='new'>Political Notebook: Wiener, Mandelman bromance brews<\/a><\/h3><div style='color:#000; font-family:sans-serif; font-size:10pt;'>Over a year ago gay state Senator Scott Wiener (D-San Francisco) lashed out in a published post on the website Medium at then supervisorial candidate Rafael Mandelman for contending he would serve on the board in a similar fashion as Wiener had.<\/div><br clear='all'><br\/>\r\t\t\t\t\t\r\t\t\t\t\t<span class=\"sectionheader\"><a href=\"http:\/\/www.ebar.com\/arts_%26_culture\/\">Arts & Culture<\/a><\/span>\r\t\t\t\t\t<hr color=\"#9e0b0f\">\r\t\t\t\t\t<a href='https:\/\/www.ebar.com\/arts_&_culture\/theater\/news\/\/269326' target='new'><img src='http:\/\/www.queeryme.com\/display\/viewimage_story_preview.php?application_id=0&id=269326&maxwidth=150' align='left' border='0' style='float:left; margin-right:10px; margin-bottom:10px;'><\/a><h3><a href='https:\/\/www.ebar.com\/arts_&_culture\/theater\/news\/\/269326' target='new'>Queer Evan Hansen<\/a><\/h3><div style='color:#000; font-family:sans-serif; font-size:10pt;'>&quot;The past few weeks, I&#039;ve been feeling a bit overwhelmed by social media,&quot; admits Ben Levi Ross, entirely aware of the irony in his situation.<\/div><br clear='all'><a href='https:\/\/www.ebar.com\/arts_&_culture\/art\/news\/\/269325' target='new'><img src='http:\/\/www.queeryme.com\/display\/viewimage_story_preview.php?application_id=0&id=269325&maxwidth=150' align='left' border='0' style='float:left; margin-right:10px; margin-bottom:10px;'><\/a><h3><a href='https:\/\/www.ebar.com\/arts_&_culture\/art\/news\/\/269325' target='new'>Parisian pleasures<\/a><\/h3><div style='color:#000; font-family:sans-serif; font-size:10pt;'>&quot;Brassai,&quot; an engrossing new show at SFMOMA, leaves no doubt that this artist, who was also an accomplished sculptor and writer, was a great of 20th-century photography.<\/div><br clear='all'><a href='https:\/\/www.ebar.com\/arts_&_culture\/music\/news\/\/269323' target='new'><img src='http:\/\/www.queeryme.com\/display\/viewimage_story_preview.php?application_id=0&id=269323&maxwidth=150' align='left' border='0' style='float:left; margin-right:10px; margin-bottom:10px;'><\/a><h3><a href='https:\/\/www.ebar.com\/arts_&_culture\/music\/news\/\/269323' target='new'>Gifted Fellows<\/a><\/h3><div style='color:#000; font-family:sans-serif; font-size:10pt;'>The Adler Fellows class of 2018 appeared in their final concert of the year, &quot;The Future Is Now: Adler Fellows Concert&quot; last Saturday night in Herbst Theatre.<\/div><br clear='all'><br\/>\r\t\t\t\t\t\r\t\t\t\t\t<span class=\"sectionheader\"><a href=\"http:\/\/www.ebar.com\/bartab\/\">BARtab<\/a><\/span>\r\t\t\t\t\t<hr color=\"#9e0b0f\">\r\t\t\t\t\t<a href='https:\/\/www.ebar.com\/events\/nightlife_events\/news\/\/269386' target='new'><img src='http:\/\/www.queeryme.com\/display\/viewimage_story_preview.php?application_id=0&id=269386&maxwidth=150' align='left' border='0' style='float:left; margin-right:10px; margin-bottom:10px;'><\/a><h3><a href='https:\/\/www.ebar.com\/events\/nightlife_events\/news\/\/269386' target='new'>Connie Champagne - celebrated chanteuse's new Judy Garland holiday show<\/a><\/h3><div style='color:#000; font-family:sans-serif; font-size:10pt;'>It&#039;s been a while, and it may be a while longer before Connie Champagne returns, but her subtle, witty and endearing portrayal of Judy Garland takes place to Oasis on December 15.<\/div><br clear='all'><a href='https:\/\/www.ebar.com\/bartab\/nightlife\/news\/\/269384' target='new'><img src='http:\/\/www.queeryme.com\/display\/viewimage_story_preview.php?application_id=0&id=269384&maxwidth=150' align='left' border='0' style='float:left; margin-right:10px; margin-bottom:10px;'><\/a><h3><a href='https:\/\/www.ebar.com\/bartab\/nightlife\/news\/\/269384' target='new'>Running up that hill in 2019<\/a><\/h3><div style='color:#000; font-family:sans-serif; font-size:10pt;'>2018 was a rough year for almost everyone I know, even if there were hopeful moments sprinkled along the way. You might have noticed that we had an overwhelming number of success stories, too.<\/div><br clear='all'><a href='https:\/\/www.ebar.com\/events\/nightlife_events\/news\/\/269385' target='new'><img src='http:\/\/www.queeryme.com\/display\/viewimage_story_preview.php?application_id=0&id=269385&maxwidth=150' align='left' border='0' style='float:left; margin-right:10px; margin-bottom:10px;'><\/a><h3><a href='https:\/\/www.ebar.com\/events\/nightlife_events\/news\/\/269385' target='new'>Nightlife Events Dec 13-20, 2018<\/a><\/h3><div style='color:#000; font-family:sans-serif; font-size:10pt;'>Chalk up all the fun you had, and add a few more week&#039;s merriment to round off the year of nightlife fun, because the newest club is opening up!<\/div><br clear='all'><br\/>\r\t\t\t   <\/td>\r               <td width='10' bgcolor='#fff'><\/td><td width='300' bgcolor='#fff' valign='top'>\r               <a href='https:\/\/www.ticketmaster.com\/event\/1C00557E9A073BA7'><img src='http:\/\/www.queeryme.com\/display\/viewimage_ad.php?id=3463' border='0'><\/a><br>\r               <br\/>\r               <a href='http:\/\/therhino.org\/'><img src='http:\/\/www.queeryme.com\/display\/viewimage_ad.php?id=3466' border='0'><\/a><br>\r               <br\/>\r               <a href='https:\/\/www.sfsymphony.org\/Buy-Tickets\/2018-19\/New-Year%E2%80%99s-Gaiety-Peaches-Christ-and-the-SF-Sympho... src='http:\/\/www.queeryme.com\/display\/viewimage_ad.php?id=3464' border='0'><\/a><br>\r               <\/td><td width='10' bgcolor='#fff'><\/td><\/tr>\r<\/table>\r<\/div>\r\r<div style='width: 100%; padding-top:10px;'>\r<a href='https:\/\/concerts1.livenation.com\/event\/1C00557E9A073BA7'><img src='http:\/\/www.queeryme.com\/display\/viewimage_ad.php?id=3465' border='0'><\/a><br>\r<\/div>\r\r<div style='width: 100%; padding:10px 0px; margin:10px 0px; border-top:4px solid #930b0f;'>\r<table border='0' cellspacing='0' cellpadding='0' align='center' width='728'>\r\t<tr><td width='728' bgcolor='ffffff'>\r\t\t\r\t\t<div style='font-size:10pt; color:#333; margin: 0px 10px 10px 10px; float:left;'>\r<H3>For more news, visit our website at <a href=\"http:\/\/www.ebar.com\">ebar.com<\/a>!<\/h3>\r<\/div><div style='margin: 0px 10px 10px 10px; float:right;'>\r<a target=\"new\" href=\"http:\/\/www.facebook.com\/BayAreaReporter\" target=\"top\"><img style=\"width:30px;\" src=\"https:\/\/www.queeryme.com\/images\/icon_facebook.png\" alt=\"Visit Us On Facebook\"><\/a>\r<a target=\"new\" href=\"http:\/\/www.twitter.com\/ebarnews\" target=\"top\"><img style=\"width:30px;\"src=\"https:\/\/www.queeryme.com\/images\/icon_twitter.png\" alt=\"Visit Us On Twitter\"><\/a>\r<a target=\"new\" href=\"http:\/\/www.ebar.com\/index.php?formID=84\"><img style=\"margin-left:0px; width:30px;\" src=\"https:\/\/www.queeryme.com\/images\/icon_email.png\" alt=\"Subscribe\"><\/a>\r<a target=\"new\" href=\"http:\/\/www.ebar.com\/index.php?ch=rss\"><img style=\"margin-left:0px;width:30px;\" src=\"https:\/\/www.queeryme.com\/images\/icon_rss.png\" alt=\"RSS Feed\"><\/a><\/div>\t\t\r\t\t<\/div>\r<\/td><\/tr>\r<\/table>\r<\/div>\r<div style='width: 100%; '>\r<table border='0' cellspacing='0' cellpadding='0' align='center' width='728'>\r\t<tr><td width='728' bgcolor='ffffff'>\r<div style=\"font-size:10px;\">You are currently subscribed to the Bay Area Reporter Newsletter. To unsubscribe, <a style='color:#333; text-decoration: underline;' href='%profile_center_url%' alias='Update Profile'>click here<\/a>.\r\t\t<\/div>\r\t\t<\/td>\r        <\/tr>\r<\/table>\r<\/div>\r\t\t\r<div style='width: 100%; '>\r<table width='728' border='0' cellspacing='0' cellpadding='0' align='center'><tr><td><br\/><\/td><\/tr><tr><td><font style='font-size:8pt; line-height: 100%;' size='1' color='#999999' face='Lucida Grande, Arial, Helvetica, sans-serif'>Copyright \u00a9 <?=date('Y');?> BAR, Inc.<\/font><br\/><br\/><\/td><\/tr><\/table>\r<\/div>\r\r<\/div>\r<\/body>\r<\/html>","text_content":"BAY AREA REPORTER\rWEEKLY EMAIL NEWSLETTER\rThursday, December 13, 2018\r-------------------------------------------------------\rGay trailblazer leaves office: Yeager eyes Senate run\nIn his 1999 book about the first LGBT people elected to public office in the U.S., Ken Yeager noted that being a politician was \"an occupation where the words 'heterosexuals only' might as well be stamped in big letters.\"\nRead it: https:\/\/www.ebar.com\/news\/news\/news\/\/269448\n\n\nActivists plan alternative to AIDS 2020 \nGlobal HIV advocates plan to hold an alternative meeting in Mexico City to coincide with the International AIDS Conference in July 2020, as organizers of that confab decline to move it out of the Bay Area.\nRead it: https:\/\/www.ebar.com\/news\/news\/news\/\/269447\n\n\nPolitical Notebook: Wiener, Mandelman bromance brews\nOver a year ago gay state Senator Scott Wiener (D-San Francisco) lashed out in a published post on the website Medium at then supervisorial candidate Rafael Mandelman for contending he would serve on the board in a similar fashion as Wiener had.\nRead it: https:\/\/www.ebar.com\/news\/news\/news\/\/269458\n\n\n\rQueer Evan Hansen\n\"The past few weeks, I've been feeling a bit overwhelmed by social media,\" admits Ben Levi Ross, entirely aware of the irony in his situation.\nRead it: https:\/\/www.ebar.com\/arts_&_culture\/theater\/news\/\/269326\n\n\nParisian pleasures\n\"Brassai,\" an engrossing new show at SFMOMA, leaves no doubt that this artist, who was also an accomplished sculptor and writer, was a great of 20th-century photography.\nRead it: https:\/\/www.ebar.com\/arts_&_culture\/art\/news\/\/269325\n\n\nGifted Fellows\nThe Adler Fellows class of 2018 appeared in their final concert of the year, \"The Future Is Now: Adler Fellows Concert\" last Saturday night in Herbst Theatre.\nRead it: https:\/\/www.ebar.com\/arts_&_culture\/music\/news\/\/269323\n\n\n\rConnie Champagne - celebrated chanteuse's new Judy Garland holiday show\nIt's been a while, and it may be a while longer before Connie Champagne returns, but her subtle, witty and endearing portrayal of Judy Garland takes place to Oasis on December 15.\nRead it: https:\/\/www.ebar.com\/events\/nightlife_events\/news\/\/269386\n\n\nRunning up that hill in 2019\n2018 was a rough year for almost everyone I know, even if there were hopeful moments sprinkled along the way. You might have noticed that we had an overwhelming number of success stories, too.\nRead it: https:\/\/www.ebar.com\/bartab\/nightlife\/news\/\/269384\n\n\nNightlife Events Dec 13-20, 2018\nChalk up all the fun you had, and add a few more week's merriment to round off the year of nightlife fun, because the newest club is opening up!\nRead it: https:\/\/www.ebar.com\/events\/nightlife_events\/news\/\/269385\n\n\n\r--------------------------------------... us at ebar.com\r\rCopyright 2018 The Bay Area Reporter \/ B.A.R. Inc.","email_content_format":"HTML","sent_to_contact_lists":[{"id":"1669839542"}]}

 

1 REPLY
Moderator

Re: Validated email address getting an error when setting up campaign

Hi @DavidF930,

 

I was able to create an email using the JSON you posted in the clients account (I located it by using the reply-to/from email address). Next time you get this error please email us at webservices@constantcontact.com so we can dig in to our logs and see if we can figure out why you are getting the error.

 

**I've edited your original post to remove the email address.


Regards,
Jimmy D.
Tier II API Support Engineer
Still need help?
You can post a new message in the Community or find us on Twitter Mon-Fri 8am - 8pm ET. We've got real people waiting to help you out. Click below to start a conversation!