Server returned something of an unexpected type.

This is usually a problem on library side. Feel free to open an issue about this!

Hierarchy (view full)

Constructors

Properties

actual: string

Actual TL type

cause?: unknown
context: string

Context at which the error occurred. Usually a user-friendly string containing name of the high-level API method, name of the TL RPC method, and path of the entity, like this: signIn (@ auth.signIn -> user)

expected: string

Expected TL type

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void