# Function timeout debugging

**URL:** <https://answers.netlify.com/t/function-timeout-debugging/70903>\
**Category:** Support\
**Tags:** lambda-functions, svelte, functions\_timelimit\
**Created:** [July 8, 2022, 11:16am UTC](https://answers.netlify.com/t/function-timeout-debugging/70903 "2022-07-08T11:16:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![apop9](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@apop9](https://answers.netlify.com/u/apop9)\
**Post date:** [July 8, 2022, 11:16am UTC](https://answers.netlify.com/t/function-timeout-debugging/70903/1 "2022-07-08T11:16:04Z")

</div>

Our svelte website is running in a function which calls an API. Sometimes we would get the function timeout error, but its random and not consistently reproducible. We’ve had a hard time finding a connection between a specific timed out function and our API logs.  
Would there be some kind of property that is being logged in the netlify function log which is also received in the handler function of the website, that we can then pass to our API client, attach it to any request and add it to the logs, essentially connecting a netlify function call to all API requests?

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [July 10, 2022, 12:20pm UTC](https://answers.netlify.com/t/function-timeout-debugging/70903/2 "2022-07-10T12:20:00Z")

</div>

Nothing by default, but you could always use `console.time()`.

---

<div class="post-metadata">

**Author:** ![apop9](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@apop9](https://answers.netlify.com/u/apop9)\
**Post date:** [July 12, 2022, 2:35am UTC](https://answers.netlify.com/t/function-timeout-debugging/70903/3 "2022-07-12T02:35:18Z")

</div>

Well not that this answered my question but it did help me to move forward, so thank you!

---

<div class="post-metadata">

**Author:** ![hillary](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hillary/32/21132_2.png) [@hillary](https://answers.netlify.com/u/hillary)\
**Post date:** [July 12, 2022, 10:34pm UTC](https://answers.netlify.com/t/function-timeout-debugging/70903/4 "2022-07-12T22:34:20Z")

</div>

glad it got you on the right track! If you have any further questions, don’t hesitate to follow up.

Happy building 🚀
