ErrLookup › napi-rs/napi-rs

napi-rs/napi-rs

A framework for building compiled Node.js add-ons in Rust via Node-API · Rust · 214 source files

Analyzed at 39bd1205e4 on 2026-09-13. 69 documented errors.

Code / MessageTypeSeverityTags
context
error_code error napi-status, async-runtime, threadsafe-function, environment-lifecycle
BTreeMap is not supported in noop mode
panic error noop-mode, unsupported-type, panic, btreemap, feature-flags
error_msg (format!($msg, value_type))
error_code error napi, native-addon, type-mismatch, diagnostic
GenericFailure
JavaScript host registration id space exhausted
error_code error counter-overflow, resource-exhaustion, async-runtime, internal-state
JS symbols cannot be represented as a serde_json::Value
validation error serde-json, symbol, type-conversion, napi
InvalidArg
CurrentThread host registration was not reserved or was already consumed
error_code error invalid-argument, one-time-token, async-runtime, registration
Unknown JS variables cannot be represented as a…
validation error serde-json, unknown-type, type-conversion, napi
no AsyncRuntime backend is registered; call…
error_code error async, runtime, initialization, module-init
[napi-rs] missing environment variables. please upgrade…
panic error proc-macro, typedef, cli-version, env-var
invalid typedarray type: expected
panic error typedarray, type-mismatch, panic, napi-rs
{}
panic error proc-macro, compile-time, panic
Failed to create the native CurrentThread task host
error_code critical native, async-runtime, threading, resource-exhaustion
the wasm environment is being disposed: its async runtime…
error_code warning wasm, async-runtime, shutdown, cancelled
Promise then callback was called more than once
error_code error napi, promise, thenable, use-after-free-guard
Share the same data between different buffers is not…
panic error napi-rs, arraybuffer, memory-safety, panic, buffer-aliasing
Failed to convert napi value into rust type `NaiveDateTime
validation error date, chrono, parsing, napi
Expected $name, got
validation error typedarray, uint8clampedarray, napi-rs
Object is not array
validation error napi, type-error, array, invalid-argument
{error}
panic error async-runtime, timer, thread-creation, panic
Expects an assignment (ts_arg_type = "MyType")
validation error proc-macro, compile-time, attribute-parsing, typescript
Failed to close handle scope
panic error napi-rs, handle-scope, panic, node-api, lifecycle
expected string literals
validation error proc-macro, compile-time, attribute-parsing, typescript
format!($msg, type_of!($env, $val)?)
error_code error napi, native-addon, type-mismatch
Cancelled
AbortError
error_code warning async, promise, cancellation, abort
Invalid value
validation error either, type-mismatch, napi, validation
Threadsafe timer cancellation callback call failed
error_code error async-runtime, threadsafe-function, timers, teardown
task was cancelled before completion
error_code warning async, cancellation, lifecycle
The AsyncRuntime backend does not support blocking work
error_code error async-runtime, blocking, unsupported-operation
Value is none of these types
validation error either, type-mismatch, napi, validation
Failed to schedule ReadableStream read
error_code error stream, readable-stream, scheduling, napi
{reason}
error_code error async-runtime, registration, double-initialization
ArrayExpected
Object is not array
validation error javascript, array, object
Invalid key collection mode
validation error napi, enum, invalid-argument, key-collection-mode
napi:: cannot run
panic critical wasm, tokio, lifecycle, panic, shutdown
async runtime generation task id space exhausted
panic error async-runtime, task-spawn, overflow, panic
Expected a Date object
validation error date, chrono, napi-rs, argument-validation
Expects an assignment (value = "enum-variant-value")
validation error rust, proc-macro, compile-time, enum
Arguments length of #[module_exports] function must be 1 or…
panic error proc-macro, compile-time, module-exports, signature
Expects a string literal
validation error rust, proc-macro, compile-time, typescript-definitions
Invalid release name
error_code error utf-8, string, node-version, ffi
Borrowed data should not be null
validation error null-pointer, external-buffer, napi-rs
Create Error reference failed
error_code error napi-rs, node-api, error-conversion
undefined cannot be represented as a serde_json::Value
validation error serde-json, undefined, type-conversion, napi
(panic payload)
error_code error async, panic, promise-rejection, rust
{err.reason}
error_code error threadsafe-function, conversion, callback
Panic in async function
error_code error panic, async, rust
Promise catch callback was called more than once
error_code error napi, promise, thenable, use-after-free-guard
runtime metrics reset generation space exhausted
panic error async-runtime, metrics, overflow, panic
Found invalid date
validation error date, timezone, dst, chrono
Invalid argument, nothing attach to js_object
validation error napi, unwrap, invalid-argument, object-wrap
Invalid number of arguments
validation error arguments, arity, napi, signature
Expected a TypedArray value
validation error napi, typedarray, type-check
Expected a Buffer value
validation error buffer, napi-rs, argument-validation
< > on `External` is not the type of wrapped object
validation error external, downcast, type-mismatch, napi
The `noop` feature is enabled; no AsyncRuntime backend can…
validation error async-runtime, cargo-features, noop
Expected , got Array
validation error napi, typedarray, dtype
Invalid key filter [ ]
validation error napi, enum, invalid-argument, key-filter
JS functions cannot be represented as a serde_json::Value
validation error napi, serde-json, function, unsupported-conversion
Invalid key conversion
validation error napi, enum, invalid-argument, key-conversion
Arguments index out of range
validation error arguments, index-out-of-range, napi, js-function
Receive value from threadsafe function sender failed
error_code error threadsafe-function, async, callbacks
Built-in Tokio async tasks require a threaded WASI target…
error_code error wasm, wasi, async, platform, tokio
{err}
error_code error threadsafe-function, async, javascript-exception
Promise finally callback was called more than once
error_code error napi, promise, finally, use-after-free-guard
format!($($msg)*)
error_code info napi-rs, macro, error-construction
noop feature is enabled, block_on is not available
panic error noop, tokio, feature-flags, panic
HashMap is not supported in noop mode
panic error noop, feature-flags, unsupported-operation, panics
External JS objects cannot be represented as a…
validation error serde-json, external, type-conversion, napi
There is no arguments
validation error arguments, missing-argument, napi, js-function