ErrLookup › lionsoul2014/ip2region
lionsoul2014/ip2region
Ip2region is an offline IP-to-Region localization library and IP data management framework with both IPv4 and IPv6 supports, 10-microsecond level query efficiency, xdb search client for many programming languages · Go · 123 source files
Analyzed at c1a1fc7d59 on 2026-09-02. 125 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| invalid ip address '${ipToString(ipBytes)}' (${this.version. | validation | error | |
| incomplete read: read bytes should be ${buff.length} | exception | error | |
| invalid ipv4 address | validation | error | |
| invalid ipv4 part '${ps[i]}', a valid number expected | validation | error | |
| invalid ipv4 part '${ps[i]}' should >= 0 and <= 255 | validation | error | |
| invalid ipv6 address | validation | error | |
| invalid ipv6 address: multi double colon detected | validation | error | |
| invalid ipv6 part '${ps[i]}', a valid hex number expected | validation | error | |
| invalid ipv6 part '${ps[i]}' should >= 0 and <= 65534 | validation | error | |
| invalid ip address '${ipString}' | validation | error | |
| invalid bytes ip, not a Buffer | validation | error | nodejs, type-error, buffer, ip2region |
| invalid bytes ip with length not 4 or 16 | validation | error | nodejs, buffer, ipv6, ipv4, data-corruption |
| incomplete read (${rBytes} read, ${header.HeaderInfoLength} | exception | critical | nodejs, file-io, truncated-file, xdb |
| incomplete read (${rBytes} read, ${vBytes} expected) | exception | critical | nodejs, file-io, truncated-file, vector-index |
| incomplete read (${rBytes} read, ${stats.size} expected) | exception | critical | nodejs, file-io, concurrency, truncated-file |
| invalid structure version ${header.version} | validation | error | nodejs, versioning, xdb, format |
| xdb file exceeds the maximum supported bytes: ${maxFilePtr} | exception | error | nodejs, file-size, xdb, limits |
| ip verison not match: xdb file ${xdbFile.getAbsolutePath()} | exception | error | java, ipv6, ipv4, configuration, xdb |
| invalid cache policy `${name}` | validation | error | java, configuration, cache-policy, invalid-argument |
| SetXdbInputStream could ONLY be used with cachePolicy = Conf | validation | error | java, configuration, cache-policy |
| Both xdbFile and xdbPath is null | validation | error | java, configuration, missing-file |
| invalid byte ip address with length=${ipBytes.length} | validation | error | java, ip-address, input-validation |
| invalid ip address (${version.name} expected) | validation | error | java, ip-address, version-mismatch |
| incomplete read: read bytes should be ${buffer.length} | exception | error | java, io, corrupt-file |
| incomplete read: read bytes should be ${len} | exception | error | java, io, corrupt-file |
| incomplete read: read bytes should be ${buff.length}, got `$ | exception | error | java, io, corrupt-file |
| invalid structure version `${header.version}` | exception | error | java, file-format, version-mismatch |
| xdb file exceeds the maximum supported bytes: ${maxFilePtr} | exception | error | java, file-format, size-limit |
| invalid ip address `${ip}` | validation | warning | java, ip-address, input-validation |
| invalid version name `${name}` | validation | error | |
| invalid xdb structure version `${header.version}` | exception | error | |
| invalid ip version number `${header.ipVersion}` | exception | error | |
| dbPath | validation | error | |
| xdb file not found. | exception | error | |
| invalid verstion name `{$ver_name}` | exception | error | |
| invalid xdb structure version `{$header['version']}` | exception | error | |
| invalid ip version number `{$header['ipVersion']}` | exception | error | |
| failed to open xdb file '%s' | exception | error | |
| invalid ip address `{$ip}` | exception | error | |
| invalid ip address ({$this->version->name} expected) | exception | error | php, ip-address, input-validation, ipv6 |
| failed to fseek to {$offset} | exception | error | php, file-io, seek, fseek |
| failed to fread from {$len} | exception | error | php, file-io, fread, io-error |
| incomplete read: read bytes should be {$len} | exception | error | php, file-io, corruption, short-read |
| invalid ip address `{}` | exception | error | python, ip-address, type-error, input-validation |
| invalid ip address `{}` ({} expected) | exception | error | python, ip-address, ipv6, version-mismatch |
| invalid ip address `{}` | exception | error | python, ip-address, parsing, valueerror |
| invalid bytes ip `{}` | exception | error | python, ip-address, type-error, bytes |
| invalid structure version {} | exception | error | python, version-mismatch, xdb, validation |
| xdb file exceeds the maximum supported bytes: {} | exception | error | python, file-size, xdb, limit-exceeded |
| failed to get executale: %w | exception | error | |
| parse v4 cache policy: %w | exception | error | |
| Expand(`%s`): %s | exception | error | |
| NewV4Config: %w | exception | error | |
| parse v6 cache policy: %w | exception | error | |
| NewV6Config: %w | exception | error | |
| open xdb file `%s`: %w | exception | error | |
| xdb verify: %w | exception | error | |
| failed to load header from `%s`: %s | exception | error | |
| failed to detect IP version from `%s`: %s | exception | error | |
| failed to load vector index from `%s`: %w | exception | error | |
| failed to load content from '%s': %w | exception | error | |
| invalid cache policy `%s`, options: file/vectorIndex/content | exception | error | |
| invalid cache policy name `%s` | exception | error | |
| searchers=%d, > 0 expected | exception | error | |
| ip verison not match: xdb file %s with ip version=%s, as %s | exception | error | |
| failed to create v4 in-memory searcher: %w | exception | error | |
| failed to create v4 searcher pool: %w | exception | error | |
| failed to create v6 in-memory searcher: %w | exception | error | |
| failed to create v6 searcher pool: %w | exception | error | |
| failed to create v4 config: %w | exception | error | |
| failed to create v6 config: %w | exception | error | |
| parse ip %s: %w | exception | error | |
| invalid ip value type %s | exception | error | |
| invalid byte ip address with len=%d | exception | error | |
| v4 searcher pool already closed | exception | error | |
| v6 searcher pool already closed | exception | error | |
| config.searchers must > 0 | exception | error | |
| failed to create the %dth searcher: %w | exception | error | |
| invalid input buffer | exception | error | golang, xdb, invalid-input, corrupt-file |
| parse ip %s: %w | exception | error | golang, ip-parsing, invalid-input |
| invalid ip value type %s | exception | error | golang, type-error, invalid-argument |
| invalid ip address(%s expected) | exception | error | golang, ip-version, mismatch, ipv6 |
| read vector index block at %d: %w | exception | error | golang, xdb, io-error, vector-index |
| read segment index at %d: %w | exception | error | golang, xdb, io-error, binary-search, corrupt-file |
| read region at %d: %w | exception | error | golang, xdb, io-error, region-data |
| incomplete read: readed bytes should be %d | exception | error | golang, xdb, incomplete-read, content-buffer |
| seek to %d: %w | exception | error | golang, io-error, seek, file-handle |
| handle read: %w | exception | error | golang, io-error, file-read, eof |
| invalid ip address: %s | exception | error | go, input-validation, ip-address |
| length of the two ips are not the same | exception | error | go, ip-address, argument-validation |
| IPSub(%s, %s): %w | exception | warning | go, ip-address, misleading-message |
| loading header: %w | exception | error | go, file-validation, corrupt-file |
| invalid version: %d | exception | error | go, version-mismatch, file-format |
| file stat: %w | exception | error | go, filesystem, oserror |
| xdb file exceeds the maximum supported bytes: %d | exception | error | go, file-size, limit-exceeded, version-mismatch |
| open xdb file `%s`: %w | exception | error | go, filesystem, file-not-found, permissions |
| seek to the header: %w | exception | error | golang, io, seek, xdb |
| incomplete read: readed bytes should be %d | exception | error | golang, io, short-read, truncated-file, xdb |
| invalid content buffer: %d bytes, %d expected | exception | error | golang, validation, buffer, input-validation, xdb |
| seek to vector index: %w | exception | error | golang, io, seek, vector-index, xdb |
| seek to get xdb file length: %w | exception | error | golang, io, seek, xdb |
| failed to open embedded file `%s`: %w | exception | error | golang, embed, file-not-found, fs, xdb |
| failed to read embedded file `%s`: %w | exception | error | go, embed, file-io, xdb |
| parse ip fail: %w | exception | error | go, ip-parsing, validation |
| invalid version name `%s` | exception | error | go, validation, cli, version |
| invalid version `%d` | exception | error | go, xdb-header, corrupt-file, version |
| searchers must be > 0 | validation | error | cangjie, config-validation, pool-size |
| xdb file IP version mismatch: expected ${ipVersion.name}, go | validation | error | cangjie, config, ip-version-mismatch, xdb |
| SearcherPool is closing | exception | warning | cangjie, concurrency, pool-shutdown, lifecycle |
| failed to allocate memory for db_path | console | critical | c, nginx, out-of-memory, config-load |
| failed to load xdb header from: %s | console | critical | c, nginx, file-not-found, xdb-header |
| failed to determine xdb version from header: %s | console | critical | nginx, xdb, config-startup, file-format |
| %s expects %s xdb file, but got %s: %s | console | critical | nginx, xdb, version-mismatch, config-startup, ipv6 |
| failed to create searcher: %s | console | critical | nginx, file-io, permissions, xdb, config-startup |
| failed to load vector index from: %s | console | critical | nginx, xdb, vector-index, memory, file-io |
| failed to create vector index cached searcher: %s | console | critical | nginx, xdb, vector-index, config-startup |
| failed to load xdb content: %s | console | critical | nginx, xdb, memory, content-cache, file-io |
| failed to create content cached searcher: %s | console | critical | nginx, xdb, memory, content-cache, config-startup |
| invalid cache policy, options: file/vectorIndex/content | validation | critical | nginx, config, validation, cache-policy |
| no IPv4 searcher available for IPv4 address | console | warning | nginx, runtime, ipv4, missing-config |
| ip2region search failed for IPv4 address | console | warning | nginx, runtime, search-failure, ipv4, xdb |
| ip2region search failed for IPv4-mapped IPv6 address | console | error | |
| ip2region search failed for IPv6 address | console | error | |
| no IPv6 searcher available for IPv6 address | console | error | |
| ip2region: no region found for IP address | console | error |