Form submission via API returning 500 error on production servers

developertools
forms

#1

I’m submitting multiple forms via the API to HubSpot. Everything works as expected on our local environments but when we deploy to production or staging they fail with a 500 error. The code is obviously the same so I’m thinking maybe there’s a whitelist of domains/IPs to accept form submissions from?

The endpoint I’m posting to is https://forms.hubspot.com/uploads/form/v2/2*****4/49545648-97a8-455e-8eea-f8458de740e7

Any advice on where to start debugging this? I have all local, staging and production URLs in HubSpot under sites.


#2

Hi @wwwroth,

Can you post the full error response here? There should be some more information in the response body that might be useful in troubleshooting.