Sample account with made-up data. Buttons that change things are switched off. Get this for your own account

Workflow map / Health report

At risk

Big-deal alert

Workflow custom code · Deals · Node.js 20. Checked Oct 18, 2026, 4:26 PM.

2 problems

At riskHubSpot can't see this

Calls fetch() without checking whether the request worked (line 3). fetch only fails when the network does, so when a request is rejected or rate-limited, this step still finishes as a success and HubSpot doesn't retry it.

Fails silently. The step reports success when it fails, so HubSpot has no error to show.
Where: Step 1 (Custom code)
How to fix. After each fetch, check the response and throw when it failed, for example: if (!res.ok) throw new Error(`Request failed: ${res.status}`). The step then fails where you can see it. Or use @hubspot/api-client, which throws on errors and gets HubSpot's automatic retries for rate limits.
Sends only the lines with the problem, credentials removed. 20 drafts left this month.
At riskHubSpot can't see this

A credential is pasted directly into the code (line 1) instead of stored in HubSpot Secrets. Anyone who can edit workflows can copy it.

Not an error. It's a risk, not an error, so HubSpot's issue review doesn't list it.
Where: Step 1 (Custom code)
How to fix. Move it into the custom code action's Secrets, read it with process.env, and rotate the exposed credential.
Sends only the lines with the problem, credentials removed. 20 drafts left this month.

How it connects

Set off by

Sets off

It doesn't set off another workflow through a property, a list or an email.

See it on the workflow map

What it depends on

PropertyHowWhereActions
dealstageEnrolls on it (contractsent)Enrollment trigger

History

WhenWhat happened
Oct 18, 2026Found Big-deal alert reports success even when its requests fail
Oct 18, 2026Found Big-deal alert has a credential pasted into its code