# Using node-red-node-sqlite: error are uncaught by CATCH node

**URL:** <https://discourse.nodered.org/t/using-node-red-node-sqlite-error-are-uncaught-by-catch-node/90288>\
**Category:** General\
**Created:** [20 August 2024 08:08 UTC](https://discourse.nodered.org/t/using-node-red-node-sqlite-error-are-uncaught-by-catch-node/90288 "2024-08-20T08:08:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GuyZou](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/guyzou/32/37401_2.png) [@GuyZou](https://discourse.nodered.org/u/GuyZou)\
**Post date:** [20 August 2024 08:08 UTC](https://discourse.nodered.org/t/using-node-red-node-sqlite-error-are-uncaught-by-catch-node/90288/1 "2024-08-20T08:08:01Z")

</div>

I'm running a flow using SQLITE DB. It is simple et efficient enough.

When I start a long query on the database from an external program,

_Like:( select count (_) from MESSAGES where sent = 0;)\*

I have an error when node red flow tries to access the DB.

_20/08/2024 09:32:56[node: DB Commit Send](http://10.173.2.182:1880/#)msg : error_

- "Error: SQLITE\_BUSY: database is locked"\*

The error is inherent to the way sqlite has been implemented and it is not an issue.

**The issue is that that error is not caught by a CATCH node properly setup.**

Did someone had same kind of issue ?

Thanks for any idea

Guy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 November 2024 08:08 UTC](https://discourse.nodered.org/t/using-node-red-node-sqlite-error-are-uncaught-by-catch-node/90288/2 "2024-11-18T08:08:10Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
