LiSA Social Commerce
Developers
Developers
  • Developers
  • Guides
    • Integration Guide
      • Web Integration
      • App Integration
        • Android
          • Communication
          • Storage
          • File Downloads
          • Theming
        • iOS
          • Communication
          • Storage
          • File Downloads
          • Theming
        • React Native
          • Communication
          • Storage
          • File Downloads
          • Theming
        • Picture in Picture
      • Entrypoints
        • Query Parameter (v1)
    • Player Communication
      • Message API Reference
        • App
          • App — Heartbeat
          • App — Message Acknowledge
          • App — Message Error
          • App — Listen
        • CTA
          • CTA — Link in Comments
          • CTA — Sponsor Badge
        • Cart — View Cart
        • Comments — Join
        • Media
          • Media — Complete
          • Media — Pause
          • Media — Progress
          • Media — Resume
        • Media Item
          • Media Item — Emoji
          • Media Item — Impression
        • Player
          • Player — Dismiss
          • Player — Native Picture-in-Picture (PiP)
          • Player — Pass Visual Viewport
          • Player — Request Visual Viewport
          • Player — UI Transition
        • Products
          • Products — Add to Cart
          • Products — Add to Wishlist
          • Products — Click
          • Products — Close Product List
          • Products — Emoji
          • Products — Emoji State Update
          • Products — Impression
          • Products — Open Product List
        • Stickers
          • Stickers — Activate
          • Stickers — Click
          • Stickers — Expire
          • Stickers — Impression
          • Stickers — Publish
          • Stickers — Unlock
          • Stickers — Unpublish
          • Stickers — Update
          • Stickers — Voucher Claim
        • Visitor — Pass User Context
        • Shared Legacy Message Properties
    • Products
      • Product Update Notification API
  • Widgets
    • Content Hub
    • Quick Start Guide
    • Appearance
      • Markup
      • Responsive design
    • Configuration options
      • Autoplay
      • Channel
      • Client
      • Data
      • Debug
      • Host node
      • Layout
      • Language
      • On
      • Player
      • Query string
      • Quick view
      • Sections
      • Store
      • Template
    • API reference
      • Library API reference
      • Player API reference
      • Quick View API reference
    • Customisations
      • Template
      • Bring your own template
      • Type definitions
    • Examples
    • Type definitions
      • Asset
      • Product
      • Other
    • Promo Widget
      • Quick Start Guide
      • Configuration options
        • Autoplay
        • Channel
        • Countdown (deprecated)
        • Enabled
        • Image modifier
        • Lead time
        • Live (deprecated)
        • Position
        • Replay (deprecated)
        • Show ID
        • URL
  • Media Player Introduction
    • Picture-in-Picture Mode
  • Analytics
  • REST API
    • Authentication
    • Rate limits
    • Response status and error codes
    • API Documentation
Powered by GitBook
On this page
  • Properties
  • Type Definition
  • Examples
  1. Guides
  2. Player Communication
  3. Message API Reference
  4. App

App — Message Error

PreviousApp — Message AcknowledgeNextApp — Listen

Last updated 1 month ago

The LiSA Player sends an Error message if it encounters a message that cannot be parsed successfully.

This message is sent by the LiSA Player to the host app / environment.

Properties

Along with all standard , a Message Error message includes the following additional properties:

Name
Type
Description

error

Required.

messageType

Required.

lsc:app:message:error


Type Definition

interface AppMessageAcknowledgeMessage extends Omit<
  Message,
  'messageType' | 'sender'
> {
  error: MessageError;
  messageType: 'lsc:app:message:error';
  sender: 'LiSA';
}

MessageError

The LiSA Player uses to parse incoming messages. For details on the ZodIssue type, refer to the Zod documentation.

interface MessageError {
  /** The distinct human-readable error code. */
  code: string;
  /** A message describing the error that occurred. */
  message: string;
  /** A status code, typically 400 to indicate a bad request. */
  statusCode: number;
  /** The payload of the original message that the player failed to parse. */
  input: unknown;
  /** A list, providing detailed information on the issues identified. */
  issues: ZodIssue[];
  /**
   * The unique identifier of the message that the player failed to parse,
   * if provided.
   */
  messageId?: string;
}

Examples

Pass User Context message, that misses the id property.

{
  "clockDriftInMs": 0,
  "error": {
    "code": "ParseError",
    "message": "Failed to parse message",
    "statusCode": 400,
    "input": {
      "messageId": "2a0e5ddc-a3ea-4a43-aff0-be07bdb55077",
      "messageType": "lsc:visitor:pass-user-context",
      "sender": "Sender",
      "recipient": "LiSA",
      "displayName": "Jane Doe",
      "isCommentsConsentRequired": false
    },
    "issues": [
      {
        "code": "invalid_type",
        "expected": "string",
        "received": "undefined",
        "path": [
          "id"
        ],
        "message": "Required"
      }
    ],
    "messageId": "2a0e5ddc-a3ea-4a43-aff0-be07bdb55077"
  },
  "messageType": "lsc:app:message:error",
  "sender": "LiSA"
}

The error property specifies the issue that occurred during message parsing. Refer to for detailed information.

MessageError
Literal
MessageError
Zod
Message properties