404 Error Returned From HubSpot
-
Upon form submission, the following error appears in the WP Admin:
“Contact Requests: HubSpot rejected the submission with an error 404 for “New Contact Us 10202015 LRN Website” [7b7ebcd3-b274-41c8-8fd9-e0bdec9758ad].”
The API key seems to be fine, as I’m able to set up form and field mapping without issue. HubSpot support has been unhelpful thus far, so I’m hoping that you can at least point me in a direction to troubleshoot the issue.
-
Hey Eric,
Every now and then HubSpot gets overwhelmed and 404’s their whole API.
I would suggest turning on the Debug mode for my plugin and exploring the error log on one a your test submissions.
define('GF_HUBSPOT_DEBUG', true);The error log will show up in your wp-content/uploads folder.
Only times I’ve ever seen 404’s for the HubSpot API is when they’re down themselves. And just in case, I would say make sure you’re using the latest version of my plugin (though I’m sure you are)
Hi Chris –
Thank you so much for the reply. Using a new I’m still getting the 404 error in the back-end, but the final error in the log is: “Form Feed could not be sent to HubSpot.”
Here’s the raw log output:
[2015-10-29 14:30:42] Plugin Booted Up [2015-10-29 14:30:57] Plugin Booted Up [2015-10-29 14:30:58] GF_Hubspot_Base::_get_form(): Form [be289e95-17eb-4fd2-a0fb-2ab3756bcec7] details collected from HubSpot [2015-10-29 14:30:58] O:8:"stdClass":26:{s:4:"guid";s:36:"be289e95-17eb-4fd2-a0fb-2ab3756bcec7";s:4:"name";s:9:"Test Form";s:6:"action";s:0:"";s:6:"method";s:4:"POST";s:8:"cssClass";s:15:"hs-form stacked";s:8:"redirect";s:0:"";s:6:"fields";a:3:{i:0;O:8:"stdClass":18:{s:4:"name";s:9:"firstname";s:5:"label";s:10:"First Name";s:4:"type";s:6:"string";s:9:"fieldType";s:4:"text";s:11:"description";s:0:"";s:9:"groupName";s:18:"contactinformation";s:12:"displayOrder";i:-1;s:8:"required";b:0;s:15:"selectedOptions";a:0:{}s:7:"options";a:0:{}s:10:"validation";O:8:"stdClass":4:{s:4:"name";s:0:"";s:7:"message";s:0:"";s:4:"data";s:0:"";s:19:"useDefaultBlockList";b:0;}s:7:"enabled";b:1;s:6:"hidden";b:0;s:12:"defaultValue";s:0:"";s:12:"isSmartField";b:0;s:15:"unselectedLabel";s:0:"";s:11:"placeholder";s:0:"";s:21:"dependentFieldFilters";a:0:{}}i:1;O:8:"stdClass":18:{s:4:"name";s:8:"lastname";s:5:"label";s:9:"Last Name";s:4:"type";s:6:"string";s:9:"fieldType";s:4:"text";s:11:"description";s:0:"";s:9:"groupName";s:18:"contactinformation";s:12:"displayOrder";i:-1;s:8:"required";b:0;s:15:"selectedOptions";a:0:{}s:7:"options";a:0:{}s:10:"validation";O:8:"stdClass":4:{s:4:"name";s:0:"";s:7:"message";s:0:"";s:4:"data";s:0:"";s:19:"useDefaultBlockList";b:0;}s:7:"enabled";b:1;s:6:"hidden";b:0;s:12:"defaultValue";s:0:"";s:12:"isSmartField";b:0;s:15:"unselectedLabel";s:0:"";s:11:"placeholder";s:0:"";s:21:"dependentFieldFilters";a:0:{}}i:2;O:8:"stdClass":18:{s:4:"name";s:5:"email";s:5:"label";s:5:"Email";s:4:"type";s:6:"string";s:9:"fieldType";s:4:"text";s:11:"description";s:0:"";s:9:"groupName";s:18:"contactinformation";s:12:"displayOrder";i:-1;s:8:"required";b:1;s:15:"selectedOptions";a:0:{}s:7:"options";a:0:{}s:10:"validation";O:8:"stdClass":4:{s:4:"name";s:5:"email";s:7:"message";s:34:"Please enter a valid email address";s:4:"data";s:0:"";s:19:"useDefaultBlockList";b:0;}s:7:"enabled";b:1;s:6:"hidden";b:0;s:12:"defaultValue";s:0:"";s:12:"isSmartField";b:0;s:15:"unselectedLabel";s:0:"";s:11:"placeholder";s:0:"";s:21:"dependentFieldFilters";a:0:{}}}s:10:"submitText";s:6:"Submit";s:10:"followUpId";s:0:"";s:16:"notifyRecipients";s:0:"";s:23:"leadNurturingCampaignId";s:0:"";s:15:"formFieldGroups";a:3:{i:0;O:8:"stdClass":3:{s:4:"name";s:7:"group-0";s:10:"fieldNames";a:1:{i:0;s:9:"firstname";}s:7:"default";b:1;}i:1;O:8:"stdClass":3:{s:4:"name";s:7:"group-1";s:10:"fieldNames";a:1:{i:0;s:8:"lastname";}s:7:"default";b:1;}i:2;O:8:"stdClass":3:{s:4:"name";s:7:"group-2";s:10:"fieldNames";a:1:{i:0;s:5:"email";}s:7:"default";b:1;}}s:9:"createdAt";i:1445972565545;s:9:"updatedAt";i:1445972577943;s:15:"performableHtml";s:0:"";s:12:"migratedFrom";s:0:"";s:19:"ignoreCurrentValues";b:0;s:8:"metaData";a:0:{}s:9:"deletable";b:1;s:13:"inlineMessage";s:0:"";s:18:"socialLoginEnabled";b:0;s:16:"socialLoginTypes";a:2:{i:0;s:8:"FACEBOOK";i:1;s:10:"GOOGLEPLUS";}s:5:"tmsId";s:0:"";s:14:"captchaEnabled";b:0;s:12:"campaignGuid";s:0:"";s:12:"embeddedCode";s:201:"<script charset="utf-8" src="http://js.hubspot.com/forms/current.js"></script> <script> hbspt.forms.create({ portalId: '319387', formId: 'be289e95-17eb-4fd2-a0fb-2ab3756bcec7' }); </script>";} [2015-10-29 14:30:58] GF_HubSpot::process_feed(): Feed Processing for Form "Test Form" (be289e95-17eb-4fd2-a0fb-2ab3756bcec7) [2015-10-29 14:30:59] GF_HubSpot::process_feed(): Form Feed could not be sent to HubSpot [be289e95-17eb-4fd2-a0fb-2ab3756bcec7] [2015-10-29 14:30:59]Hey, Eric,
I wasn’t able to get anywhere with this today (though I did solve another outstanding issue)..
I plan to spend a little more time on it tomorrow… can you send me the full details of the note that shows up on that entry in Gravity Forms related to the HubSpot error? It should be in the entry itself when viewing the details, which is how I’m assuming you knew it was a 404 error.
Might help me more there. However, I tested it with my own installs, and I wasn’t able to replicate, unfortunately. So I can only do so much from my end while I just “assume” things π
Thanks for taking a look! Being unable to replicate the issue is frustrating, I know. And it doesn’t help that HubSpot support doesn’t have access to any kind of API console that would help determine why the requests are getting rejected. Their documentation for the Forms API says that a 404 should only be issued if the form ID passed doesn’t exist within the HubSpot account, but that doesn’t really make sense since I compared the GUID sent and the one listed within HubSpot itself.
Here’s the exact error: “Contact Requests: HubSpot rejected the submission with an error 404 for “New Contact Us 10202015 LRN Website” [7b7ebcd3-b274-41c8-8fd9-e0bdec9758ad].”
Note that I’ve received the same error when using two different HubSpot forms.
Eric,
I just had a random thought into the issue… If you read it, the error is implying that the form data received is invalid.
Right now this plugin really only works with things like DateTime, Radio Buttons, Checkboxes, Dropdowns, and Text Input/TextArea fields…
Are you using any of the other field types in HubSpot beyond that? It’s likely that the data as I compile it by default isn’t matching the format that HubSpot is expecting, that could be the reason for it to return a 404.
Chris –
Thanks for the idea, but I’m pretty sure it’s not the cause of the problem, as, in my test form, I’m only using two kinds of Gravity Forms fields: single-line text and email. Just to be safe, I changed the email field to a single-line text field, and the submission still errors out. Frustrating!
For now, we are going to just go with a HubSpot embed. Thanks for taking a look anyway!
– Eric
The topic ‘404 Error Returned From HubSpot’ is closed to new replies.