> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# MessageParseError

> Thrown when an incoming message cannot be parsed.

Raised when an inbound signaling message cannot be decoded — typically a malformed JSON payload or one that fails schema validation. The SDK skips the offending message and continues; persistent occurrences usually indicate a server/client version skew.

## **Extends**

* `Error`

## **Constructors**

### Constructor

```ts
new MessageParseError(originalError): MessageParseError
```

### Parameters

Underlying parse error (typically a JSON or schema error).

## **Properties**

Underlying parse error (typically a JSON or schema error).

## **Examples**

```ts
import { MessageParseError } from '@signalwire/js';

client.errors$.subscribe((err) => {
  if (err instanceof MessageParseError) {
    console.warn('skipped unparsable message:', err.originalError);
  }
});
```