Skip to content

Crash in Cloudflare Workers / Vercel Edge Runtime #20

@dqbd

Description

@dqbd

When running the edge function via workerd or on live Vercel Edge Function, the following panic occurs:

Error: `unwrap_throw` failed
    at (node_modules/@dqbd/tiktoken/lite/tiktoken_bg.js:374:0)
    at (wasm://wasm/0030beca:1:462682)
    at (wasm://wasm/0030beca:1:430867)
    at (wasm://wasm/0030beca:1:14978)
    at (node_modules/@dqbd/tiktoken/lite/tiktoken_bg.js:195:0)

The issue does not occur when encode() is not invoked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions