Hey there,
We are having an urgent issue with a file in our hubspot instance. This file download was working but we have received reports that it no longer works within the past day. This file is fetched via a command line when customers download our stack.
We have identified that this relies on the useragent. Was something changed recently that would create this issue? Specifically around useragent filtering? We are struggling to understand why it is useragent specific.
To summarize:
Problem: Access to our Stack install script and .deb files is restricted due to user agent string checks, leading to a 404 error unless the user agent starts with “Mozilla”.
Impact: This issue prevents scripts and users relying on our Stack installations from accessing necessary files.
Causes: The problem was caused by an unintended change on HubSpot’s end relating to how they serve file uploads. (Our theory)
Hi @JSpain! Welcome to the Community-- happy to have you here ![]()
I understand you are using a webhook to fetch a file and it no longer works as expected. I also see you have filed a ticket with HubSpot Support; thank you for using that resource! The Support team has access to your account in ways the Community does not, but sometimes they have limitations when it comes to custom-coded actions. That said, in the meantime, maybe some of our Community experts have experienced this as well.
I want to invite some subject matter experts to see if they have any suggestions.
Hey @louischausse, @CateDuarte, @carolgiacon do you have any troubleshooting tips or have you experienced this same type of error before?
Best,
Kennedy
Same problem here. In our case we have a Datadog syntethic test in place which is checking if our site returns 200/OK status. Yesterday it started to fail, but the sites is shown correctly loaded in the browser. It does return 404 if we try to get it using curl. Looking at the response headers looks like Hubspot has a Cludflare WAF which is blocking requests based on the user-agent.
See this example:
curl -I 'https://www.example.com/'
HTTP/2 404
date: Wed, 20 Nov 2024 16:51:04 GMT
content-type: text/html
strict-transport-security: max-age=3628800; includeSubDomains; preload
content-security-policy: upgrade-insecure-requests
x-hs-prerendered-error: Wed, 20 Nov 2024 00:13:03 GMT
x-hs-reason: 404 predicted at edge
(redacted)