HubSpot 404 error with incoming data


#1

Hi there! In my zap between Zapier's Email Parser and HubSpot, I received a 404 error. The Zapier support team sent the following info related to that error message, but we cannot make heads or tails of it:

Credentials are censored and data may be formatted and/or truncated.

REQUEST

POST https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/Phone%201:%20(702)%20303-7600 Email:%20rherman@superiortileandmarble.com Website:%20http://www.superiortileandmarble.com Address:%204305%20Polaris%20Avenue City:%20Las%20Vegas State:%20NV ZIP%20code:%2089103 Country:%20United%20States Timestamp:%203/22/18%2015:35%20CDT Company%20Profile Segment:%20Construction%20/%20Contracting.%20This%20is%20a%20contracting%20company%20for%20tile%20and%20marble%20that%20mainly%20help%20during%20kitchen%20and%20bathroom%20remodels. Number%20of%20Employees:%20101-250%20Employees.%20200-300%20employees. Annual%20Revenue:%20$26%20million%20to%20$50%20million Number%20of%20Users:%206%20to%2010%20users.%206. Project%20&%20Requirements%20Overview Applications%20needed:%20Applicant%20Tracking%20and%20%20On-Boarding Key%20features%20needed:%20They%20need%20to%20be%20able%20to%20run%20reports%20on%20different%20conversion%20metrics%20of%20how%20long%20interviews%20a?access_token=:censored:36:3905c674f1:

Content-Length: 15123
Accept-Encoding: gzip, deflate
Accept: application/json
User-Agent: Zapier
Connection: keep-alive
Content-Type: application/json; charset=utf-8

{
"properties": [{
"property": "sa_lead_project_req_s_overview",
"value": "Key Features: They need to be able to run reports on different conversion metrics of how long interviews are taking, conversion rates, and things along those lines. They need to be able to send email and text message to candidates through the system and schedule interviews with them. They need the system to be able to track the overall process of turning a candidate into an employee. They need the system to be able to track where each candidate is coming from if possible. | Deployment: Annual Revenue: $26 million to $50 million\n\nNumber of Users: 6 to 10 users. 6.\n\n\n\nProject & Requirements Overview\n\nApplications needed: Applicant Tracking and On-Boarding\n\nKey features needed: They need to be able to run reports on different conversion metrics of how long interviews are taking, conversion rates, and things along those lines. They need to be able to send email and text message to candidates through the system and schedule interviews with them. They need the system to be able to track the overall process of turning a candidate into an employee. They need the system to be able to track where each candidate is coming from if possible.\n\nDeployment: Web-based | Currently Using: Key features needed: They need to be able to run reports on different conversion metrics of how long interviews are taking, conversion rates, and things along those lines. They need to be able to send email and text message to candidates through the system and schedule interviews with them. They need the system to be able to track the overall process of turning a candidate into an employee. They need the system to be able to track where each candidate is coming from if possible.\n\nDeployment: Web-based\n\nCurrently using: They are using email, Excel spreadsheets, and other manual methods to track this information. | Reasons for Shopping: Key features needed: They need to be able to run reports on different conversion metrics of how long interviews are taking, conversion rates, and things along those lines. They need to be able to send email and text message to candidates through the system and schedule interviews with them. They need the system to be able to track the overall process of turning a candidate into an employee. They need the system to be able to track where each candidate is coming from if possible.\n\nDeployment: Web-based\n\nCurrently using: They are using email, Excel spreadsheets, and other manual methods to track this information.\n\nReasons for shopping: They need to be able to streamline workflow, track applicant intake more carefully, and save as much time in the recruiting process as possible. | Evaluated: They need to be able to run reports on different conversion metrics of how long interviews are taking, conversion rates, and things along those lines. They need to be able to send email and text message to candidates through the system and schedule interviews with them. They need the system to be able to track the overall process of turning a candidate into an employee. They need the system to be able to track where each candidate is coming from if possible.\n\nDeployment: Web-based\n\nCurrently using: They are using email, Excel spreadsheets, and other manual methods to track this information.\n\nReasons for shopping: They need to be able to streamline workflow, track applicant intake more carefully, and save as much time in the recruiting process as possible.\n


RESPONSE

404

Date: Wed, 28 Mar 2018 22:34:05 GMT
Content-Length: 0
Connection: keep-alive
Set-Cookie: __cfduid=ddf0804d6e99db6d53ec4c8ad5de07c831522276445; expires=Thu, 28-Mar-19 22:34:05 GMT; path=/; domain=.hubapi.com; HttpOnly
Access-Control-Allow-Credentials: false
Vary: Accept-Encoding, Accept-Encoding
Expect-Ct: max-age=604800, report-uri="[redacted]"
Server: cloudflare
Cf-Ray: 402d8fe5bf819568-IAD


#2

Hi @adaume_revriv,

Does the request URL contain all of the information shown in your post, or is that a formatting quirk? The 'Create or update a contact' endpoint URL takes the following form:

contacts/v1/contact/createOrUpdate/email/:contact_email

Where :contact_email is replaced by the email address of the contact you're trying to create/update. If you're appending all of the information listed above, you're seeing a 404 because HubSpot can't parse that info as a valid email address. Most of that information should be sent in the POST body, while just the email address (in this example, rherman@superiortileandmarble.com) should be passed in the URL. The correct URL in this example should look like this:

POST contacts/v1/contact/createOrUpdate/email/rherman@superiortileandmarble.com

Zapier will need to alter the request(s) they're making to this endpoint according to the following docs in order for the requests to function correctly: