BoundaryML/baml
Documented errors, page 12 of 13. Back to BoundaryML/baml
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| includes() method takes exactly 1 argument at | exception | error | baml, interpreter, string-methods, wrong-arity |
| Invalid argument | exception | error | rust, runtime, argument-validation |
| Key must be a string | validation | error | ffi, decode, kwargs, map-keys, rust |
baml.panics.Unreachable unreachable code executed | error_code | critical | vm, unreachable, compiler, panic, baml |
| Expected TypeBuilder, got | validation | error | ffi, decode, type-mismatch, rust |
| Failed to refresh access token | exception | error | oauth, auth, token-refresh, network |
| shift << requires integer operands at | validation | error | baml, type-mismatch, interpreter, shift-operator |
| Tuple types are not supported in CFFI | panic | error | cffi, unsupported-type, schema |
| unexpected token ` ` in script body. Script bodies have the… | validation | error | cli, argument-parsing, baml |
| array access on non-list at | exception | error | interpreter, indexing, type-mismatch |
| baml.media.image.from_url expects 1 argument, got | validation | error | baml, builtin, arity, media |
| base_url is required | validation | error | openai, base-url, missing-field |
| Class with name already exists | exception | error | type-builder, duplicate, class, schema |
| Expected a string, not null | validation | error | rust, baml, null, config |
| Float literals cannot be parsed | error_code | error | rust, type-system, literals |
| readFileRef failure | exception | error | wasm, javascript, file-read, promise |
| script ` ` has no `--function` and there is no implicit… | validation | error | cli, config, missing-argument, baml |
| variant ` ` must declare exactly one `#[axis(..)] | validation | error | proc-macro, compile-time, attributes, rust |
baml.panics.Cancelled operation cancelled | error_code | warning | vm, cancellation, timeout, panic, baml |
| failed to encode kwargs | exception | error | go, serialization, collector, kwargs |
| Invalid client provider | validation | error | provider, enum, parsing |
| left operand of || must be bool at | validation | error | baml, type-mismatch, interpreter, logical-operator |
| replace() method takes exactly 2 arguments at | exception | error | runtime, arity, strings, baml |
| baml.fetch_as expects 1 argument (url), got | validation | error | baml, builtin, arity, fetch |
| Client closed | error_code | info | lsp, connection, shutdown, rust |
| Failed to convert function name to string | validation | error | ffi, rust, encoding, utf-8 |
| Failed to load project files | exception | error | lsp, filesystem, rust, reload |
| File provided for PDF input is not a PDF. Detected mime type | validation | error | baml, media, pdf, validation |
| --install-extension exited with | exception | error | ide, vscode, install |
| Invalid left hand of assignment, only variables, instance… | panic | error | rust, compiler, syntax, panic |
| Rust unions are not supported for this derive macro. | validation | error | rust, derive-macro, serde, union, compile-time |
| to_fixed() method only available on floats and ints at | exception | error | runtime, type-mismatch, numbers, baml |
| error parsing function result | exception | error | baml, parsing, llm |
| failed copying from to | error_code | error | go, file-io, io-copy, native-library-download |
| Value not found. | exception | error | enum, lookup, builder |
| A function call with ID | exception | error | concurrency, call-id, duplicate |
| Expected a string, not a bool | validation | error | rust, baml, type-mismatch, config |
| expected `true` or `false`, got | validation | error | cli, boolean, parsing, baml |
| Failed to convert to string | exception | error | rust, formatting, utf-8, encoding |
MissingArgument role() called without role. Try role('role') or role(role='role'). | exception | error | jinja, chat-template, missing-argument, rust |
| substring() start argument must be an int at | exception | error | baml, argument-type, substring, index |
| (library or dependency not found) | exception | error | go, dlopen, missing-dependency, native-library |
baml.errors.InvalidArgument invalid argument | error_code | error | stdlib, invalid-argument, validation, baml |
| Expected a , got a ( : ) | validation | error | rust, parser, formatting, grammar-mismatch |
| Expected a string, not an array | validation | error | rust, baml, type-mismatch, config |
| : `[package]` is missing `name = "<your-project-name>"`. | validation | error | toml, manifest, config, missing-key |
| Property already exists. | exception | error | javascript, type-builder, duplicate, property, baml |
| sdk csharp must identify nuget/baml-bridge | exception | error | manifest, sdk, csharp |
| trim() method only available on strings at | exception | error | baml, interpreter, string-methods, type-mismatch |
| unexpected stream state | panic | critical | go, panic, streaming, enum |
baml.panics.NegativeBitShift negative bit shift | error_code | error | bigint, bit-shift, arithmetic, vm-panic, catchable |
| boundary id must be 16 bytes, got | validation | error | uuid, byte-length, deserialization |
| failed to create collector | exception | error | go, ffi, collector, constructor |
| read capacity must fit inside normal capacity | validation | error | lsp, rust, validation, limits |
| BAML_CACHE_VERIFY: cached bytecode for key | exception | error | |
| `-e` is not compatible with `--file`. Expression mode… | validation | error | cli, mutually-exclusive-flags, baml |
| failed to create base http client for WASM | exception | error | wasm, http-client, reqwest, aws, init |
| feedback needs a title; pass --title "..." or a JSON… | validation | error | cli, validation, empty-required-field, feedback |
| Missing window object | exception | error | wasm, browser, jwt, environment |
| region cannot be empty | validation | error | aws-bedrock, config, empty-value |
| SHA256 checksum verification failed. Expected | exception | critical | security, checksum, integrity, rust |
| unsupported native path prefix | exception | error | rust, filesystem, windows, path |
| BAML_CACHE_VERIFY: cached stdlib interface for package | exception | error | |
| combined normal and reserved capacity overflowed usize | validation | error | lsp, rust, validation, overflow |
| Enum with name does not exist | exception | error | type-builder, enum, not-found, schema |
| native path is not valid Unicode | exception | error | rust, filesystem, encoding, unicode |
| remap_role must be in allowed_roles | validation | error | config, validation, roles, baml |
| substring() method takes exactly 2 arguments at | exception | error | baml, argument-count, string-method, arity |
| Usage: :load (or :l ) | exception | warning | repl, cli, usage |
| env.get expects exactly one argument | exception | error | baml, env, arity, builtin |
| profiling store is in use | console | error | cli, profiling, file-lock, cleanup |
| the Go generator requires `--sdk-import-path | validation | error | cli, go, missing-argument |
| two `-f` targets share subcommand name | validation | error | cli, conflict, naming, baml |
| unsupported types for += operator | exception | error | runtime, type-error, assignment, interpreter |
| Could not bind playground port | exception | error | rust, network, port-conflict, tcp |
| are mutually exclusive dispatch modes — pick one. | validation | error | cli, argument-parsing, baml |
| Class with name does not exist | exception | error | type-builder, class, not-found, schema |
| Invalid strategy client provider variant | validation | error | strategy, enum, parsing |
| retained size does not fit usize | validation | error | rust, protobuf, integer-overflow, deserialization |
| startsWith() method only available on strings at | exception | error | baml, interpreter, string-methods, type-mismatch |
| Type mismatch | exception | error | type-mismatch, types, baml |
| c_for_after_stmt cannot accept empty input | panic | error | rust, parser, panic, for-loop, invariant |
| checksum for ' ' not found within file | error_code | warning | checksum, not-found, download, integrity |
| Failed deserializing HTTP body as JSON | exception | error | ruby, ffi, http-body, json |
| Failed to serialize request result | exception | error | lsp, serialization, serde, rust |
| modulo by zero in %= operator | exception | error | runtime, arithmetic, modulo-by-zero, interpreter |
| failed to get SSE chunks | exception | error | go, ffi, streaming |
| native path is not absolute | exception | error | rust, filesystem, path |
| Non-text part encountered | exception | error | openai, message-format, text-only, unsupported-media |
| Package initialization failed | exception | error | initialization, package, baml |
| split() argument must be a string at | exception | error | baml, argument-type, string-method, type-mismatch |
| Typecheck errors | exception | error | typecheck, interpreter, baml, static-analysis |
| bitwise |= requires integer operands | exception | error | baml, interpreter, bitwise, type-mismatch |
| default_role must be in allowed_roles | validation | error | strategy, roles, config-validation |
| expression mode (`-e` / `--expression`) is not packageable… | validation | error | cli, flags, pack, expression-mode |
| Failed to load native binding | exception | critical | nodejs, native-binding, napi, installation |
| includes() argument must be a string at | exception | error | baml, interpreter, string-methods, argument-type |
| Invalid checksum file format | exception | error | parsing, rust, checksum, empty-file |
| Unknown enum | error_code | error | sap, baml, undefined-reference, enum |
| Failed to fetch media | exception | error | network, http, fetch, baml |