# \[New feature\] Logs for API workflow errors

**URL:** <https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862>\
**Category:** Announcements\
**Created:** [July 28, 2023, 8:37pm UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862 "2023-07-28T20:37:19Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![henry.dowling](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/henry.dowling/32/207419_2.png) [@henry.dowling](https://forum.bubble.io/u/henry.dowling)\
**Post date:** [July 28, 2023, 8:37pm UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/1 "2023-07-28T20:37:19Z")

</div>

Hi all,

We’re excited to roll out a much-requested improvement to logging today! Starting today, you’ll notice a new type of server logs in your logs tab— “Error running API workflow”. Here you will find logs flagging when an API workflow errors out. Previously, when an API workflow failed, we wouldn’t log anything, making debugging difficult.

 ![Screen Shot 2023-07-28 at 4.35.52 PM](https://us1.discourse-cdn.com/bubble/original/3X/e/4/e441e67da71c00eef0b6f9f85a7fe2852d45693c.png)

Here are the different types of logs that you can expect to see when you check the “Error running API workflow” box:

- Workflow timeout errors
- Query timeouts
- Parameter parsing errors
- General “catch all” error when execution of an API workflow fails for some other reason.

 ![Screen Shot 2023-07-28 at 4.36.25 PM](https://us1.discourse-cdn.com/bubble/original/3X/b/e/be6d6104bb53791845233cff12ecc47a2166498e.png)

Astute observers might notice that the ID of the specific query or action that fails is also now logged in the UI. Advanced users of dev tools can use this to quickly identify the exact step of the workflow that failed. In the future, we plan to flesh out this UI to allow you to easily jump to the particular action / query that failed without needing to use dev tools.

FAQs

**What’s the difference between “Workflow error” and “Error running API workflow”?**

- “Workflow error” contains errors generated by non-API workflows, whereas “Error running API workflow” contains errors generated by API workflows.

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [July 28, 2023, 8:39pm UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/2 "2023-07-28T20:39:01Z")

</div>

What a great improvement. Thank you.

---

<div class="post-metadata">

**Author:** ![bubble.trouble](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@bubble.trouble](https://forum.bubble.io/u/bubble.trouble)\
**Post date:** [July 28, 2023, 8:54pm UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/3 "2023-07-28T20:54:53Z")

</div>

Agreed. This was definitely long needed so thank you for the work involved in making this available!

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [July 28, 2023, 9:12pm UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/4 "2023-07-28T21:12:46Z")

</div>

Can we get an option to select all and select none for the log types? It’s such a pain checking all of them or unchecking all but one

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [July 28, 2023, 9:30pm UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/5 "2023-07-28T21:30:38Z")

</div>

Keep’em coming! 😃

---

<div class="post-metadata">

**Author:** ![crathbun](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@crathbun](https://forum.bubble.io/u/crathbun)\
**Post date:** [July 28, 2023, 9:34pm UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/6 "2023-07-28T21:34:38Z")

</div>

Great news! Next can you please allow exporting of these logs? The default view in bubble is super inefficient so it’s hard to to go through. When I have to search through logs I just cringe…

---

<div class="post-metadata">

**Author:** ![chris.williamson1996](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chris.williamson1996/32/70581_2.png) [@chris.williamson1996](https://forum.bubble.io/u/chris.williamson1996)\
**Post date:** [July 28, 2023, 9:35pm UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/7 "2023-07-28T21:35:46Z")

</div>

Great update!

---

<div class="post-metadata">

**Author:** ![simosmik](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/simosmik/32/129145_2.png) [@simosmik](https://forum.bubble.io/u/simosmik)\
**Post date:** [July 29, 2023, 8:07am UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/8 "2023-07-29T08:07:26Z")

</div>

Would this allow us to see which condition made the workflow or actions of the workflow not run ? I often have multiple conditions on an API workflow and if I get Action Conditions failed I know I am f…… Also because there is no easy way to remove conditions in the middle of the expression without having to rewrite the next part

---

<div class="post-metadata">

**Author:** ![sat\_miha](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sat_miha/32/58187_2.png) [@sat\_miha](https://forum.bubble.io/u/sat_miha)\
**Post date:** [July 29, 2023, 8:50am UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/9 "2023-07-29T08:50:04Z")

</div>

The day will come that will allow to export this sluggish slow logs, thanks for the feature though

---

<div class="post-metadata">

**Author:** ![artemzheg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/artemzheg/32/9651_2.png) [@artemzheg](https://forum.bubble.io/u/artemzheg)\
**Post date:** [July 29, 2023, 10:55am UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/10 "2023-07-29T10:55:37Z")

</div>

Great update!

> [@sat\_miha](#):
>
> The day will come that will allow to export this sluggish slow logs, thanks for the feature though

yeah, we all are waiting for an opportunity to export logs or read’em via API 🙂

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [July 29, 2023, 12:20pm UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/11 "2023-07-29T12:20:48Z")

</div>

@henry.dowling Please add a feature for front end and backend workflows to have a trigger based Error running API workflow just like there is on the front end for general workflow error.

If we have this feature of a trigger when there is an error running API workflow we can create systems that help us mitigate the issues for our users when one of these errors occur.

Having the logs show us this information is a great step forward, but we need the feature to trigger actions based on when the API workflow has an error, because currently when an API timeout occurs all that Bubble does is terminates the workflow, which basically makes it impossible for us to develop ways to mitigate issues when they API timeout occurs.

---

<div class="post-metadata">

**Author:** ![simosmik](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/simosmik/32/129145_2.png) [@simosmik](https://forum.bubble.io/u/simosmik)\
**Post date:** [July 29, 2023, 2:35pm UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/12 "2023-07-29T14:35:02Z")

</div>

Plus it’s going to make it easier to debug!!

---

<div class="post-metadata">

**Author:** ![b.demontecler](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/b.demontecler/32/162038_2.png) [@b.demontecler](https://forum.bubble.io/u/b.demontecler)\
**Post date:** [July 31, 2023, 4:17am UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/14 "2023-07-31T04:17:43Z")

</div>

This is so helpful! Thank you Henry and the team!

---

<div class="post-metadata">

**Author:** ![henry.dowling](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/henry.dowling/32/207419_2.png) [@henry.dowling](https://forum.bubble.io/u/henry.dowling)\
**Post date:** [August 2, 2023, 10:04pm UTC](https://forum.bubble.io/t/new-feature-logs-for-api-workflow-errors/274862/15 "2023-08-02T22:04:07Z")

</div>

Thanks for the feedback everyone. We’re looking into making more improvements to logs in the near future, so these suggestions are much appreciated!
