Getting Cloudflare error when using CMS Source Code API
SOLVE
Hey everyone! We're getting an error from Cloudflare when we try to use the CMS Source Code API to upload minified JS and CSS files to HubSpot. The call that's failing is the cms.sourceCode.contentApi.replace, which is provided by the @hubspot/apl-client Node.js package. The call always gives back a Cloudflare error regardless of the IP address of the computer that attempts to make the call.
We need assistance because, obviously, these are legitimate API calls by us and not an attack. The files are safe, and the API calls were succeeding before. Our development pipeline relies on the CMS Source Code API's ability to save files in our HubSpot portal.
The CF Ray ID from the error is: 8bb7fb98fe8d3962-IAD
Getting Cloudflare error when using CMS Source Code API
SOLVE
@arickp1 because the API isn't functioning as expected, I recommend reaching out to HubSpot support directly so this can be escalated to their engineering team. There isn't anything we can do here in the community that would be able to resolve this for you.
If my reply answered your question please mark it as a solution to make it easier for others to find.
Getting Cloudflare error when using CMS Source Code API
SOLVE
@arickp1 because the API isn't functioning as expected, I recommend reaching out to HubSpot support directly so this can be escalated to their engineering team. There isn't anything we can do here in the community that would be able to resolve this for you.
If my reply answered your question please mark it as a solution to make it easier for others to find.