# ServerLess Functions Not Working When Developing Locally

**URL:** <https://community.hubspot.com/t/serverless-functions-not-working-when-developing-locally/145343>\
**Category:** CMS Development\
**Tags:** local-development, enterprise\
**Created:** [January 24, 2026, 3:25am UTC](https://community.hubspot.com/t/serverless-functions-not-working-when-developing-locally/145343 "2026-01-24T03:25:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KLawrence94](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@KLawrence94](https://community.hubspot.com/u/KLawrence94)\
**Post date:** [January 24, 2026, 3:25am UTC](https://community.hubspot.com/t/serverless-functions-not-working-when-developing-locally/145343/1 "2026-01-24T03:25:02Z")

</div>

For all my HS Projects with Cards with Serverless functions, the Serverless functions quit working when I am Developing Locally (_hs project dev_) in all my browsers. It’s giving me the error: _[runServerlessFunction] Failed to execute serverless function ‘myFunc’: Unknown error (n/a). Please try again or contact HubSpot for help._

I’ve verified it’s not due to any issue with the code by creating a brand new project with _hs project create --platform-version 2025.1_ then installing dependencies (_hs project install-deps_), uploading the project (_hs project upload_). This creates a boilerplate project where I’ve not changed anything. Then if I add the card to a record tab, the functionality of the Serverless function works. But if I run the live development environment (_hs project dev_), the Click Me button with the Serverless function quits working and I get the error above.

When running _hs project dev_, the terminal feed doesn’t give me any errors until I click the button to activate the Serverless function, where it will say:

```lia-code-sample
[ERROR]
[WARNING] 2026-01-24T03:19:47.448Z - App function "myFunc" execution failed due to server internal error

```

The browser console gives this error:

`raven.js:1560 GET https://app.hubspot.com/api/calling-orchestration/v1/settings/user?portalId=46713523&clienttimeout=14000&hs_static_app=calling-remote-app&hs_static_app_version=1.17284 403 (Forbidden)`

My Hubspot CLI is up to date, I’ve restarted the computer, tried incognito and multiple browsers (Chrome and Chromium Edge), deleting the project and re-uploading, deleting and re-creating, and two different sandbox instances and this problem is still recurring. Any idea what can be done to resolve this?

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [January 26, 2026, 12:24pm UTC](https://community.hubspot.com/t/serverless-functions-not-working-when-developing-locally/145343/2 "2026-01-26T12:24:11Z")

</div>

Hi @KLawrence94, I hope that you are well!  
Thanks for asking the HubSpot Community!  
I’d like to ask some clarifying questions so that we can help you the best we can:  
- Are all required local environment variables and configuration files correctly set up?  
- Is there an authentication or permissions issue affecting local serverless execution?  
- Could local network restrictions (firewall, proxy, VPN) be blocking API requests?  
The more info, screenshots (without sensitive/confidential information), and details you can provide, the better the Community can assist.  
Now, let’s consult our Top Experts: Hi @Anton, @evaldas and @SteveHTM do you have suggestions to help @KLawrence94, please?  
Thanks so much and have a lovely day!  
Bérangère  
_This post was created with the assistance of AI tools_

---

<div class="post-metadata">

**Author:** ![KLawrence94](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@KLawrence94](https://community.hubspot.com/u/KLawrence94)\
**Post date:** [January 26, 2026, 5:33pm UTC](https://community.hubspot.com/t/serverless-functions-not-working-when-developing-locally/145343/3 "2026-01-26T17:33:49Z")

</div>

Thanks [@BérangèreL](https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185)!

I’ll answer the questions in order:

1. Since the Serverless function is the boilerplate function generated by the CLI command, there are no secrets. Everything seems to be set-up correctly, and the Hubspot instance is using the latest version (that works when not Developing Locally) that is being used locally
2. There’s no authentication being done in the serverless function or any secrets. The only authentication that would be done is when the serverless function is initially called from the .jsx file, but that’s handled by Hubspot. I’ll put the code block below of the function call.
3. I don’t have any firewalls besides Crowdstrike running - and I’ve done this before with Crowdstrike on my computer and not getting any flags. I’ve also tried switching networks from a home Wi-Fi network (without any network level firewalls) to my phone’s hotspet network and experience the same error.

Here’s the call of the serverless function from the jsx file:

```lia-code-sample
 const handleClick = async () => {
 const { response } = await runServerless({ name: "myFunc", parameters: { text: text } });
 sendAlert({ message: response });
 };

```

And here’s the Serverless function itself:

```lia-code-sample
exports.main = async (context = {}) => {
 const { text } = context.parameters;

 const response = `This is coming from a serverless function! You entered: ${text}`;

 return response;
};

```

Below are screenshots of (in this order):

1. The console after running _hs project dev_ and initializing the serverless function
2. The Hubspot page after initializing the serverless function (clicking the button) while Developing Locally
3. The Hubspot page after initializing the serverless function (clicking the button) when it’s not Developing Locally

 ![CleanShot 2026-01-26 at 11.31.46@2x.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/1/01c51917b2b1c246d41b34b02695b787394815c3.png)

 ![CleanShot 2026-01-26 at 11.31.38@2x.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/7/c75211ced74f14efb861ae6d83a5cde1b1d6c35d.png)

 ![CleanShot 2026-01-26 at 11.31.18@2x.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/e/4e86e474c4d4c41549ad01ecb3eb436dcd7bee00.png)

---

<div class="post-metadata">

**Author:** ![KMunz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kmunz/32/91569_2.png) [@KMunz](https://community.hubspot.com/u/KMunz)\
**Post date:** [January 28, 2026, 2:48pm UTC](https://community.hubspot.com/t/serverless-functions-not-working-when-developing-locally/145343/4 "2026-01-28T14:48:06Z")

</div>

Hello! We are aware of an issue with running serverless functions locally on the latest version of the CLI (`7.11.2`). In the meantime, you can downgrade to version `7.10.0` and things should work as expected. We are working on a fix that should be available in an upcoming CLI version!

---

<div class="post-metadata">

**Author:** ![KMunz](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kmunz/32/91569_2.png) [@KMunz](https://community.hubspot.com/u/KMunz)\
**Post date:** [February 4, 2026, 4:38pm UTC](https://community.hubspot.com/t/serverless-functions-not-working-when-developing-locally/145343/5 "2026-02-04T16:38:25Z")

</div>

Update: There is a fix for this in CLI version `7.11.3`! Update to that version and you will no longer see this error
