# Serverless errors when testing api

**URL:** <https://discourse.sst.dev/t/serverless-errors-when-testing-api/1578>\
**Category:** General\
**Created:** [January 23, 2020, 9:28pm UTC](https://discourse.sst.dev/t/serverless-errors-when-testing-api/1578 "2020-01-23T21:28:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![n27jain](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@n27jain](https://discourse.sst.dev/u/n27jain)\
**Post date:** [January 23, 2020, 9:28pm UTC](https://discourse.sst.dev/t/serverless-errors-when-testing-api/1578/1 "2020-01-23T21:28:07Z")

</div>

So I have followed the tutorial here and still cannot find what I am doing wrong.

I try to run **serverless invoke local --function create --path mocks/create-event.json**  
I get the following error:

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/serverless_stack/original/1X/d6159fc8200fa4e187fb95365eb35d641d89007d.png)

And thus I get no response. Does anyone know what I am doing wrong?  
Not to mention when I install serverless I get a ton of audit issues. I resolved them using audit fix  
I also found some dependencies needed funding. What does that mean?

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [January 26, 2020, 6:23pm UTC](https://discourse.sst.dev/t/serverless-errors-when-testing-api/1578/2 "2020-01-26T18:23:27Z")

</div>

You can ignore all the audit and install warnings. But the error that the file doesn’t exist is the one to fix.

Check if the mocks file is the right path.
