# Event subscription times out

**URL:** <https://forums.sui.io/t/event-subscription-times-out/2349>\
**Category:** Technical Support\
**Tags:** sui\
**Created:** [January 13, 2023, 1:48pm UTC](https://forums.sui.io/t/event-subscription-times-out/2349 "2023-01-13T13:48:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PauwCrypto](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/pauwcrypto/32/1188_2.png) [@PauwCrypto](https://forums.sui.io/u/PauwCrypto)\
**Post date:** [January 13, 2023, 1:48pm UTC](https://forums.sui.io/t/event-subscription-times-out/2349/1 "2023-01-13T13:48:17Z")

</div>

Hi, I’m having a problem subscribing to an event using SUI TS SDK. Code below:

```typescript
const watchForEvents = async () => {
  console.log("starting watch");
  const filter: SuiEventFilter = {
    Package: "{Package_id}",
    Module: "{module_name}",
    MoveEventType:
      "{Package_id}::{module_name}::{Event_name}",
    EventType: "MoveEvent",
  };

  await provider.subscribeEvent(
    filter,
    (event: SuiEventEnvelope) => {
      console.log("event received");
      console.log(event);
    }
  );

  console.log("watching...");
};

```

Getting the following error after a few seconds when starting the node server:

```auto
[1] Error: Error subscribing to event: Error: timeout, filter: {Filter info}
[1] at WebsocketClient.subscribeEvent ({app_dir}\node_modules\@mysten\sui.js\dist\index.js:2025:13)

```

Is this a problem with the SDK or am I doing something wrong?
