ErrLookup › schollz/croc
schollz/croc
Easily and securely send things from one computer to another :crocodile: :package: · Go · 90 source files
Analyzed at e25f1bdc04 on 2026-08-15. 93 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Could not load croc.wasm (${response.status}) | exception | error | wasm, deployment, http, web-worker |
| croc WASM did not initialize | exception | error | wasm, initialization, timeout, web-worker |
| ${method} failed | exception | error | wasm, rpc, generic-error, web-worker |
| Peer uses unsupported PAKE protocol version ${version ?? 0}; | exception | error | pake, version-mismatch, compatibility, handshake |
| Code must be at least 6 characters | validation | warning | validation, user-input, passphrase |
| Custom codes must use printable ASCII characters | validation | warning | validation, user-input, ascii, passphrase |
| Relay returned an invalid port list: ${banner} | exception | error | relay, protocol, configuration |
| Relay rejected the connection: ${response} | exception | error | relay, authentication, configuration |
| Relay could not open the room: ${confirmation} | exception | error | relay, room, handshake |
| Peer sent an unexpected control handshake | exception | error | pake, handshake, protocol, json |
| Choose at least one file | validation | warning | validation, user-input, files |
| Duplicate filename: ${outgoingName} | validation | warning | validation, files, duplicate |
| Recipient did not start a croc PAKE handshake | exception | error | pake, handshake, sender, protocol |
| Recipient did not confirm the croc PAKE handshake | exception | error | pake, handshake, confirmation, sender |
| Recipient PAKE confirmation failed | exception | error | pake, passphrase-mismatch, security, handshake |
| Recipient did not secure the channel | exception | error | handshake, protocol, encryption, sender |
| Recipient refused transfer | exception | error | transfer, recipient, storage, propagated-error |
| Unexpected peer message: ${message.t} | exception | error | protocol, transfer, sender, state-machine |
| Recipient requested an unknown file | exception | error | protocol, file-transfer, peer-mismatch |
| Recipient cancelled | exception | error | protocol, peer-error, file-transfer, cancel |
| Expected recipient to close the file, got ${closed.t} | exception | error | protocol, state-machine, peer-mismatch |
| Received an invalid file chunk | exception | error | data-integrity, wasm, corruption, receiver |
| Received a file position that is too large | exception | error | data-integrity, receiver, corruption |
| Received file data before it was requested | exception | error | protocol, state-machine, receiver, race-condition |
| Received a duplicate file chunk | exception | error | data-integrity, receiver, duplicate, race-condition |
| Received a file chunk outside the advertised file size | exception | error | data-integrity, receiver, validation, chunking |
| Received more data than the advertised file size | exception | error | data-integrity, receiver, validation |
| Sender did not complete the croc PAKE handshake | exception | error | pake, handshake, protocol, security |
| Sender provided an invalid ${peerPake.b2.byteLength}-byte PA | exception | error | pake, handshake, validation, security |
| Sender did not confirm the croc PAKE handshake | exception | error | pake, handshake, security, network |
| Sender PAKE confirmation failed | exception | error | pake, handshake, security, key-derivation |
| Sender did not secure the channel | exception | error | pake, protocol, network, handshake |
| Sender cancelled | exception | error | protocol, peer-error, cancel, network |
| Sender did not provide file metadata | exception | error | protocol, metadata, peer-mismatch |
| Transfer refused | exception | warning | ux, cancel, protocol, expected |
| close.m || "Sender cancelled" | exception | error | peer-error, network, file-transfer, cancel |
| Expected sender to close the file, got ${close.t} | exception | error | protocol, state-machine, peer-mismatch |
| Expected transfer completion, got ${finishedMessage.t} | exception | error | protocol, state-machine, termination |
| Peer message did not include a type | exception | error | protocol, codec, peer-message, json |
| Message is too large (${payload.byteLength} bytes) | exception | error | protocol, framing, size-limit, relay |
| Relay stream did not start with croc framing | exception | error | protocol, framing, relay, stream-corruption |
| Relay frame is too large (${length} bytes) | exception | error | protocol, framing, size-limit, stream-corruption, security |
| A remote path contains a null byte | exception | error | security, path-validation, metadata, input-sanitization |
| Remote path escapes the destination: ${value} | exception | error | security, path-traversal, path-validation, metadata |
| Remote path contains a non-printable character: ${value} | exception | error | security, unicode, path-validation, metadata |
| Remote path must be relative: ${value} | exception | error | security, path-validation, metadata, windows |
| Remote path is not allowed: ${value} | exception | error | security, path-validation, ssh, metadata |
| Remote filename must be a basename: ${nameValue} | exception | error | path-validation, metadata, protocol |
| Remote filename is empty | exception | error | path-validation, metadata, validation |
| Invalid file size for ${file.n ?? "unnamed file"} | exception | error | validation, metadata, numeric-limits |
| Text transfers are not supported yet | exception | warning | protocol, unsupported-feature, text-transfer, metadata |
| Hash algorithm "${info.HashAlgorithm}" is not supported | exception | error | protocol, hash, compatibility, metadata |
| Symlink transfers are not supported in the browser | exception | warning | unsupported-feature, symlink, browser-limitation, metadata |
| Duplicate destination path: ${normalized.path} | exception | error | validation, metadata, deduplication |
| Transfer size is too large | exception | error | validation, numeric-limits, metadata |
| Duplicate destination path: ${folder} | exception | error | validation, metadata, deduplication |
| Streaming browser downloads are unavailable | exception | error | browser-support, service-worker, download, environment |
| Streaming download service did not start | exception | error | service-worker, deployment, download, environment |
| Streaming downloads support SHA-256 verification only | exception | error | streaming, hash, verification, service-worker, browser |
AbortError Destination selection cancelled | exception | info | user-cancel, abort, file-system-access, browser |
| This browser cannot stream a file this large. Receive it wit | exception | error | browser-limit, memory, streaming, secure-context, large-file |
| The sender advertised xxhash ${hex(expected)}, but the recei | exception | critical | integrity, hash, verification, corruption, xxhash |
| The stored file failed SHA-256 verification (${hex(actual)} | exception | critical | integrity, sha256, verification, stored-transfer, corruption |
AbortError Transfer cancelled | exception | info | abort, cancel, user-cancel, async |
| Stored-transfer origin must contain only an HTTPS scheme and | exception | error | validation, url, https, origin, configuration |
| Invalid stored-transfer id | exception | error | validation, token, id, stored-transfer |
| Invalid stored-transfer key | exception | error | validation, key, crypto, token |
| Invalid stored-transfer token | validation | error | validation, token, parsing |
| Invalid stored-transfer URL | validation | error | validation, url, parsing, share-link |
| Choose at least one file | validation | warning | validation, ui, input |
| Stored transfers can contain at most ${settings.maxFiles} fi | validation | error | validation, limits, stored-transfer |
| Stored transfer exceeds the ${settings.maxTransferBytes} byt | validation | error | validation, limits, size, stored-transfer |
| Duplicate filename: ${name} | validation | error | validation, filenames, collision, stored-transfer |
| Storage service returned unsupported chunk size ${created.ch | exception | error | protocol, version-skew, stored-transfer, server-contract |
| Storage service returned an invalid upload capability | exception | error | server-contract, token, capability, stored-transfer |
| Storage service returned an invalid download count | exception | error | server-contract, header, validation, stored-transfer |
| Storage service created ${acceptedDownloads} downloads inste | exception | error | server-contract, header, limits, stored-transfer |
| Storage service returned an invalid expiration time | exception | error | server-contract, json, date, stored-transfer |
| Stored-transfer downloads must be a positive integer | validation | error | validation, stored-transfer, typescript, upload |
| Stored transfers can allow at most ${settings.maxDownloads} | validation | error | validation, stored-transfer, configuration, upload |
| Stored-transfer expiration must be a whole number of seconds | validation | error | validation, stored-transfer, typescript, upload |
| Stored transfers can expire after at most ${settings.maxExpi | validation | error | validation, stored-transfer, configuration, upload |
| Stored-transfer manifest is too large | exception | error | stored-transfer, limits, manifest, download |
| Storage service returned an invalid claim capability | exception | error | stored-transfer, api-contract, download, server-mismatch |
| Storage service returned an invalid remaining-download count | exception | error | stored-transfer, http-headers, protocol, download |
| Transfer refused | exception | info | stored-transfer, user-cancel, download, control-flow |
| Gateway URL must use ws:// or wss:// | validation | error | websocket, url-validation, environment, relay |
| Relay connection closed while sending | exception | error | websocket, backpressure, network, relay |
| GitHub release request failed (${response.status}) | exception | error | github-api, http, rate-limit, network |
| GitHub returned invalid release metadata | exception | error | github-api, validation, schema, testing |
| expired or invalid stored-upload receipt | validation | warning | stored-transfer, localstorage, persistence, receipt |
| Could not parse given Upload Limit | panic | critical | go, panic, cli, throttling, validation |
| not enough open ports to run local relay | panic | critical | go, panic, relay, ports, local-server |