APIs & Integrations

Not applicable

HS Breaking My Site's reCaptcha

The invisible Google noCaptcha / reCaptcha on my site (not a site hosted by hubspot) stopped working today. I found that if I removed the Hubspot script, all is well again.

<script type="text/javascript">
    (function(d,s,i,r) {
        if (d.getElementById(i)){return;}
        var n=d.createElement(s),e=d.getElementsByTagName(s)[0];
        n.id=i;n.src='//js.hs-analytics.net/analytics/'+(Math.ceil(new Date()/r)*r)+'/4xxxx5.js';
        e.parentNode.insertBefore(n, e);
    })(document,"script","hs-analytics",300000);
</script>

I followed a chain of script loads that eventually lead me to https://js.hsleadflows.net/leadflows.js

That script is loading a bunch of reCaptcha stuff that I think is breaking us.

The problem we’re seeing is that reCaptcha is attaching itself to our login form twice so when it goes to add its g-recaptcha-response field to my post something doesn’t work right. When the server goes to pull the data out of the POST, it can’t find it.

Any thoughts?

0 Upvotes
2 Replies 2
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

HS Breaking My Site's reCaptcha

Hi @fa_iosdev,

Sounds like this was due to a transient issue with HubSpot’s built-in reCaptcha service (used for HubSpot forms / lead flows). This shouldn’t be an issue going forward; if you run into this again, please don’t hesitate to reach back out here or create a new topic.

0 Upvotes
Not applicable

HS Breaking My Site's reCaptcha

So… it is no longer breaking. Maybe someone else complained or someone reacted to this really fast?

0 Upvotes