We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Mar 16, 2017 6:46 AM
I have created an integration to update a javascript template with generated content. It works fine in the past, but recently it stopped working. Here is a sample request and response:
PUT https://api.hubapi.com/content/api/v2/templates/4135108947?hapikey=[reducted]&portalId=464889 HTTP/1.1
Host: api.hubapi.com
Content-Type: application/json
Content-Length: 15
{"source": "x"}
HTTP/1.1 500 Internal Server Error
Access-Control-Allow-Credentials: false
Cache-Control: No-store
Content-Type: text/html; charset=utf-8
P3P: P3P: policyref="http://www.hubspot.com/w3c/p3p.xml", CP="CURa ADMa DEVa TAIa PSAa PSDa OUR IND DSP NON COR
Pragma: 1489661027478
Server: gunicorn/0.17.2
X-HS-MC-Reqs: Z2V0OjIsMg==
x-last-modified: Thu, 16 Mar 2017 10:43:47 GMT
x-last-modified-timestamp: 1489661027478
Content-Length: 42
Date: Thu, 16 Mar 2017 10:43:47 GMT
Connection: close
{"message": "There was an internal error"}
Is there anything we need to change to fix this? My portal is 464889, thank you very much.
Dec 19, 2022 11:47 AM
Hey @SAPikachu, @Dadams, @karstenkoehler, @tjoyce , @Anton,
has anyone figured out what the problem is? did anyone know, how to solve this problem?
I have a problem similar to this and was thinking of using JavaScript on, say, a landing page to achieve the expected behavior and then sending the rendered HTML to the email template.
Thank you very much
Mar 16, 2017 4:03 PM
Hi @SAPikachu
Are you still seeing this issue? I’m not seeing any issues with this when testing that exact data with any templates I tried this with on a test portal. If you are, can you also send me the template ID you’re seeing this with?
Mar 16, 2017 8:29 PM
@dadams Thanks for the reply. I just checked and still saw this issue. ID of the template I used to test is 4135108947, this is the template we are using in a page. I also tested on another test template (4697950532), with the same result.
Mar 17, 2017 2:02 PM
I’ll need some other details for this, I’ll reach out to you directly.