# Nodejs Consumer Timed Out

**URL:** <https://forum.confluent.io/t/nodejs-consumer-timed-out/2419>\
**Category:** Confluent Cloud\
**Created:** [3 August 2021 08:58 UTC](https://forum.confluent.io/t/nodejs-consumer-timed-out/2419 "2021-08-03T08:58:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aishwarya](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@aishwarya](https://forum.confluent.io/u/aishwarya)\
**Post date:** [3 August 2021 08:58 UTC](https://forum.confluent.io/t/nodejs-consumer-timed-out/2419/1 "2021-08-03T08:58:09Z")

</div>

I use the Nodejs client that in turn uses librdkafka.  
When I consume from a topic in Confluent Cloud i occassionally get these errors in the logs and then consumer lag just builds for quite few minutes.  
Even after restarting the consumer, no change. after a while the lag disappears.

error{“origin”:“local”,“message”:“timed out”,“code”:-1,“errno”:-1,“stack”:“Error: Local: Timed out”}

This logging happens because I have specifically caught the exception in my consumer code

.on(‘event.error’, (err) =\> { log.error(‘Event error’, JSON.stringify(err));  
setTimeout(  
() =\> {  
console.log(`Process will exit with code:1`);  
process.exit(1);  
}, 2000);

```
			})

```

can someone suggest how to handle this error ?

At the same time another consumer consuming from a topic in the same cluster has no issues absolutely.
