Skip to content

refactor: upgrades drizzle to latest 0.x#3253

Open
stalniy wants to merge 2 commits into
mainfrom
refactor/upgrade-drizzle
Open

refactor: upgrades drizzle to latest 0.x#3253
stalniy wants to merge 2 commits into
mainfrom
refactor/upgrade-drizzle

Conversation

@stalniy
Copy link
Copy Markdown
Contributor

@stalniy stalniy commented Jun 2, 2026

Why

the current version we have has security issue

What

Summary by CodeRabbit

  • Chores

    • Updated database tooling dependencies (drizzle-orm / drizzle-kit) to newer compatible versions across the repo.
  • Bug Fixes

    • Improved detection and handling of wrapped database unique-constraint errors to reduce spurious conflicts during user upsert.
  • Other

    • JSONB bigint handling reordered internally; no user-facing behavior change.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 2, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6b4de7e4-6e1f-416b-a0d1-b436544c8602

📥 Commits

Reviewing files that changed from the base of the PR and between cf28896 and 873e405.

📒 Files selected for processing (3)
  • apps/api/src/core/repositories/base.repository.ts
  • apps/api/src/user/services/user/user.service.ts
  • apps/provider-inventory/src/lib/jsonb-bigint/jsonb-bigint.column.ts
✅ Files skipped from review due to trivial changes (1)
  • apps/provider-inventory/src/lib/jsonb-bigint/jsonb-bigint.column.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • apps/api/src/user/services/user/user.service.ts
  • apps/api/src/core/repositories/base.repository.ts

📝 Walkthrough

Walkthrough

Upgrades drizzle-orm/drizzle-kit across manifests; cast repository tables to PgTable in query builders; add getPostgresError to unwrap Postgres errors and use it in isUniqueViolation; update UserService retry predicate to use the unwrapped error; reorder jsonb-bigint fromDriver/toDriver block (no behavior change).

Changes

Drizzle ORM and Kit Dependency Updates

Layer / File(s) Summary
Workspace dependency upgrades
package.json, apps/api/package.json, apps/indexer/package.json, apps/notifications/package.json, apps/provider-inventory/package.json
drizzle-orm and drizzle-kit version constraints bumped across root and app manifests.
BaseRepository PgTable type assertions and error helper
apps/api/src/core/repositories/base.repository.ts
Adds type-only PgTable import; casts this.table as PgTable at .from(...) call sites; adds getPostgresError(error) and updates isUniqueViolation to check the unwrapped error code.
UserService: use Postgres error helper
apps/api/src/user/services/user/user.service.ts
Imports getPostgresError and reads constraint_name via getPostgresError(error)?.constraint_name when detecting username-related unique-constraint conflicts during upsert.
jsonb-bigint reorder (no behavioral change)
apps/provider-inventory/src/lib/jsonb-bigint/jsonb-bigint.column.ts
Moves fromDriver before toDriver and removes an explanatory comment; both remain pass-through.

🎯 3 (Moderate) | ⏱️ ~20 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/upgrade-drizzle

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread package-lock.json
@@ -11,7 +11,7 @@
],
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot Jun 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔄 Carefully review the package-lock.json diff

Resolve the comment if everything is ok

- apps/indexer/node_modules/drizzle-kit                                                    0.31.1  
- apps/indexer/node_modules/drizzle-orm                                                    0.42.0  
- apps/indexer/node_modules/esbuild                                                        0.25.3  
- apps/indexer/node_modules/@esbuild/aix-ppc64                                             0.25.3  
- apps/indexer/node_modules/@esbuild/android-arm                                           0.25.3  
- apps/indexer/node_modules/@esbuild/android-arm64                                         0.25.3  
- apps/indexer/node_modules/@esbuild/android-x64                                           0.25.3  
- apps/indexer/node_modules/@esbuild/darwin-arm64                                          0.25.3  
- apps/indexer/node_modules/@esbuild/darwin-x64                                            0.25.3  
- apps/indexer/node_modules/@esbuild/freebsd-arm64                                         0.25.3  
- apps/indexer/node_modules/@esbuild/freebsd-x64                                           0.25.3  
- apps/indexer/node_modules/@esbuild/linux-arm                                             0.25.3  
- apps/indexer/node_modules/@esbuild/linux-arm64                                           0.25.3  
- apps/indexer/node_modules/@esbuild/linux-ia32                                            0.25.3  
- apps/indexer/node_modules/@esbuild/linux-loong64                                         0.25.3  
- apps/indexer/node_modules/@esbuild/linux-mips64el                                        0.25.3  
- apps/indexer/node_modules/@esbuild/linux-ppc64                                           0.25.3  
- apps/indexer/node_modules/@esbuild/linux-riscv64                                         0.25.3  
- apps/indexer/node_modules/@esbuild/linux-s390x                                           0.25.3  
- apps/indexer/node_modules/@esbuild/linux-x64                                             0.25.3  
- apps/indexer/node_modules/@esbuild/netbsd-arm64                                          0.25.3  
- apps/indexer/node_modules/@esbuild/netbsd-x64                                            0.25.3  
- apps/indexer/node_modules/@esbuild/openbsd-arm64                                         0.25.3  
- apps/indexer/node_modules/@esbuild/openbsd-x64                                           0.25.3  
- apps/indexer/node_modules/@esbuild/sunos-x64                                             0.25.3  
- apps/indexer/node_modules/@esbuild/win32-arm64                                           0.25.3  
- apps/indexer/node_modules/@esbuild/win32-ia32                                            0.25.3  
- apps/indexer/node_modules/@esbuild/win32-x64                                             0.25.3  
- apps/notifications/node_modules/drizzle-kit                                              0.30.6  
- apps/notifications/node_modules/drizzle-orm                                              0.41.0  
* node_modules/drizzle-kit                                                                 0.22.8 -> 0.31.10
+ node_modules/drizzle-kit/node_modules/esbuild                                            0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/aix-ppc64                                 0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/android-arm                               0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/android-arm64                             0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/android-x64                               0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/darwin-arm64                              0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/darwin-x64                                0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/freebsd-arm64                             0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/freebsd-x64                               0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/linux-arm                                 0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/linux-arm64                               0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/linux-ia32                                0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/linux-loong64                             0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/linux-mips64el                            0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/linux-ppc64                               0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/linux-riscv64                             0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/linux-s390x                               0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/linux-x64                                 0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/netbsd-arm64                              0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/netbsd-x64                                0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/openbsd-arm64                             0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/openbsd-x64                               0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/openharmony-arm64                         0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/sunos-x64                                 0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/win32-arm64                               0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/win32-ia32                                0.25.12 
+ node_modules/drizzle-kit/node_modules/@esbuild/win32-x64                                 0.25.12 
* node_modules/drizzle-orm                                                                 0.31.2 -> 0.45.2
* node_modules/esbuild                                                                     0.19.12 -> 0.28.0
* node_modules/@esbuild/aix-ppc64                                                          0.19.12 -> 0.28.0
* node_modules/@esbuild/android-arm                                                        0.19.12 -> 0.28.0
* node_modules/@esbuild/android-arm64                                                      0.19.12 -> 0.28.0
* node_modules/@esbuild/android-x64                                                        0.19.12 -> 0.28.0
* node_modules/@esbuild/darwin-arm64                                                       0.19.12 -> 0.28.0
* node_modules/@esbuild/darwin-x64                                                         0.19.12 -> 0.28.0
* node_modules/@esbuild/freebsd-arm64                                                      0.19.12 -> 0.28.0
* node_modules/@esbuild/freebsd-x64                                                        0.19.12 -> 0.28.0
* node_modules/@esbuild/linux-arm                                                          0.19.12 -> 0.28.0
* node_modules/@esbuild/linux-arm64                                                        0.19.12 -> 0.28.0
* node_modules/@esbuild/linux-ia32                                                         0.19.12 -> 0.28.0
* node_modules/@esbuild/linux-loong64                                                      0.19.12 -> 0.28.0
* node_modules/@esbuild/linux-mips64el                                                     0.19.12 -> 0.28.0
* node_modules/@esbuild/linux-ppc64                                                        0.19.12 -> 0.28.0
* node_modules/@esbuild/linux-riscv64                                                      0.19.12 -> 0.28.0
* node_modules/@esbuild/linux-s390x                                                        0.19.12 -> 0.28.0
* node_modules/@esbuild/linux-x64                                                          0.19.12 -> 0.28.0
+ node_modules/@esbuild/netbsd-arm64                                                       0.28.0  
* node_modules/@esbuild/netbsd-x64                                                         0.19.12 -> 0.28.0
+ node_modules/@esbuild/openbsd-arm64                                                      0.28.0  
* node_modules/@esbuild/openbsd-x64                                                        0.19.12 -> 0.28.0
+ node_modules/@esbuild/openharmony-arm64                                                  0.28.0  
- node_modules/esbuild-register                                                            3.6.0   
* node_modules/@esbuild/sunos-x64                                                          0.19.12 -> 0.28.0
* node_modules/@esbuild/win32-arm64                                                        0.19.12 -> 0.28.0
* node_modules/@esbuild/win32-ia32                                                         0.19.12 -> 0.28.0
* node_modules/@esbuild/win32-x64                                                          0.19.12 -> 0.28.0
- node_modules/gel                                                                         2.0.2   
- node_modules/gel/node_modules/env-paths                                                  3.0.0   
- node_modules/gel/node_modules/isexe                                                      3.1.1   
- node_modules/gel/node_modules/which                                                      4.0.0   
- node_modules/@petamoriken/float16                                                        3.9.2   
- node_modules/shell-quote                                                                 1.8.2   
+ node_modules/tsx                                                                         4.22.4  

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Jun 2, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​nivo/​tooltip@​0.87.01001006780100
Added@​nivo/​core@​0.87.0991007180100
Added@​nivo/​pie@​0.87.01001007180100
Added@​nivo/​line@​0.87.0991007380100
Added@​novu/​api@​0.6.2968510094100

View full report

@stalniy stalniy force-pushed the refactor/upgrade-drizzle branch from f6e8ec0 to bd5c49d Compare June 2, 2026 10:18
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2026

❌ 40 Tests Failed:

Tests completed Failed Passed Skipped
3518 40 3478 0
View the top 3 failed test(s) by shortest run time
src/repositories/provider-inventory/provider-inventory.repository.integration.ts > ProviderInventoryRepository > updateInventory > writes the ClusterState as inventory JSONB
Stack Traces | 0.0142s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)
params: akash1a,https://akash1a:8443,false,,,,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/provider-inventory/provider-inventory.repository.integration.ts:220:3
 ❯ .../repositories/provider-inventory/provider-inventory.repository.integration.ts:168:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', params: [ 'akash1a', 'https://akash1a:8443', false, null, [], [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Array
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', parameters: [ 'akash1a', 'https://akash1a:8443', 'f', null, [], [], '{}' ], args: [ 'akash1a', 'https://akash1a:8443', false, null, [], [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 3802, 1009 ] }
src/repositories/provider-inventory/provider-inventory.repository.integration.ts > ProviderInventoryRepository > updateInventory > preserves isOnlineSince on subsequent updates via coalesce
Stack Traces | 0.0149s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)
params: akash1a,https://akash1a:8443,true,2026-01-01T00:00:00.000Z,,,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/provider-inventory/provider-inventory.repository.integration.ts:220:3
 ❯ .../repositories/provider-inventory/provider-inventory.repository.integration.ts:187:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', params: [ 'akash1a', 'https://akash1a:8443', true, '2026-01-01T00:00:00.000Z', [], [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Array
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', parameters: [ 'akash1a', 'https://akash1a:8443', 't', '2026-01-01T00:00:00.000Z', [], [], '{}' ], args: [ 'akash1a', 'https://akash1a:8443', true, '2026-01-01T00:00:00.000Z', [], [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > signedBy > omits the clause entirely when signedBy is empty
Stack Traces | 0.0156s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1audited,https://akash1audited:8443,true,2026-06-02T13:13:40.425Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},,{"aud-a"}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:96:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1audited', 'https://akash1audited:8443', true, '2026-06-02T13:13:40.425Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-a"}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1audited', 'https://akash1audited:8443', 't', '2026-06-02T13:13:40.425Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-a"}' ], args: [ 'akash1audited', 'https://akash1audited:8443', true, '2026-06-02T13:13:40.425Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-a"}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/provider-inventory/provider-inventory.repository.integration.ts > ProviderInventoryRepository > updateInventory > updates the existing row and never inserts a row for an owner with no attributes row
Stack Traces | 0.0159s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)
params: akash1a,https://akash1a:8443,false,,,,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/provider-inventory/provider-inventory.repository.integration.ts:220:3
 ❯ .../repositories/provider-inventory/provider-inventory.repository.integration.ts:155:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', params: [ 'akash1a', 'https://akash1a:8443', false, null, [], [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Array
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', parameters: [ 'akash1a', 'https://akash1a:8443', 'f', null, [], [], '{}' ], args: [ 'akash1a', 'https://akash1a:8443', false, null, [], [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > storage_classes filter > requires the provider to declare the unit's persistent class via @>
Stack Traces | 0.0161s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1beta2,https://akash1beta2:8443,true,2026-06-02T13:13:40.654Z,[object Object],1000000,1000000000,0,1000000000,10000,1000000,1000000000,0,{},{"beta2"},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:253:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1beta2', 'https://akash1beta2:8443', true, '2026-06-02T13:13:40.654Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 10000n, 1000000n, 1000000000n, 0n, '{}', '{"beta2"}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1beta2', 'https://akash1beta2:8443', 't', '2026-06-02T13:13:40.654Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 10000n, 1000000n, 1000000000n, 0n, '{}', '{"beta2"}', [], '{}' ], args: [ 'akash1beta2', 'https://akash1beta2:8443', true, '2026-06-02T13:13:40.654Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 10000n, 1000000n, 1000000000n, 0n, '{}', '{"beta2"}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > self-attribute filters > trailing-* glob does not cross path separators
Stack Traces | 0.0169s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1leaf,https://akash1leaf:8443,true,2026-06-02T13:13:40.460Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},[object Object],{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:116:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1leaf', 'https://akash1leaf:8443', true, '2026-06-02T13:13:40.460Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'host/gpu', value: 'true' } ], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1leaf', 'https://akash1leaf:8443', 't', '2026-06-02T13:13:40.460Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'host/gpu', value: 'true' } ], '{}' ], args: [ 'akash1leaf', 'https://akash1leaf:8443', true, '2026-06-02T13:13:40.460Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'host/gpu', value: 'true' } ], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > gpu_models filter > omits the clause for units without GPU requirements, so no-GPU providers stay in the result
Stack Traces | 0.017s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1noGpu,https://akash1noGpu:8443,true,2026-06-02T13:13:40.638Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:242:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1noGpu', 'https://akash1noGpu:8443', true, '2026-06-02T13:13:40.638Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1noGpu', 'https://akash1noGpu:8443', 't', '2026-06-02T13:13:40.638Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ], args: [ 'akash1noGpu', 'https://akash1noGpu:8443', true, '2026-06-02T13:13:40.638Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > capacity filters > excludes providers whose memory headroom covers the bare unit but not the combined memory + ram-class volume demand
Stack Traces | 0.0177s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1tightOnMemory,https://akash1tightOnMemory:8443,true,2026-06-02T13:13:40.368Z,[object Object],1000000,299,0,1000000000,0,1000000,299,0,{},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:49:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1tightOnMemory', 'https://akash1tightOnMemory:8443', true, '2026-06-02T13:13:40.368Z', { nodes: [], storage: {} }, 1000000n, 299n, 0n, 1000000000n, 0n, 1000000n, 299n, 0n, '{}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1tightOnMemory', 'https://akash1tightOnMemory:8443', 't', '2026-06-02T13:13:40.368Z', { nodes: [], storage: {} }, 1000000n, 299n, 0n, 1000000000n, 0n, 1000000n, 299n, 0n, '{}', '{}', [], '{}' ], args: [ 'akash1tightOnMemory', 'https://akash1tightOnMemory:8443', true, '2026-06-02T13:13:40.368Z', { nodes: [], storage: {} }, 1000000n, 299n, 0n, 1000000000n, 0n, 1000000n, 299n, 0n, '{}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > signedBy > matches any auditor in anyOf via &&
Stack Traces | 0.018s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1a,https://akash1a:8443,true,2026-06-02T13:13:40.409Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},,{"aud-a"}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:86:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1a', 'https://akash1a:8443', true, '2026-06-02T13:13:40.409Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-a"}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1a', 'https://akash1a:8443', 't', '2026-06-02T13:13:40.409Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-a"}' ], args: [ 'akash1a', 'https://akash1a:8443', true, '2026-06-02T13:13:40.409Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-a"}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > online filter > excludes rows where is_online_since is null
Stack Traces | 0.0181s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1stable,https://akash1stable:8443,true,2026-06-02T13:13:40.784Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:339:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1stable', 'https://akash1stable:8443', true, '2026-06-02T13:13:40.784Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1stable', 'https://akash1stable:8443', 't', '2026-06-02T13:13:40.784Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ], args: [ 'akash1stable', 'https://akash1stable:8443', true, '2026-06-02T13:13:40.784Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > self-attribute filters > ANDs exact and glob clauses
Stack Traces | 0.0183s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1both,https://akash1both:8443,true,2026-06-02T13:13:40.478Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},[object Object],[object Object],{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:125:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1both', 'https://akash1both:8443', true, '2026-06-02T13:13:40.478Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'region', value: 'us-east' }, { key: 'host/gpu', value: 'true' } ], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1both', 'https://akash1both:8443', 't', '2026-06-02T13:13:40.478Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'region', value: 'us-east' }, { key: 'host/gpu', value: 'true' } ], '{}' ], args: [ 'akash1both', 'https://akash1both:8443', true, '2026-06-02T13:13:40.478Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'region', value: 'us-east' }, { key: 'host/gpu', value: 'true' } ], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > isAudited projection > returns isAudited=true when auditedBy contains the canonical AUDITOR
Stack Traces | 0.0188s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1audited,https://akash1audited:8443,true,2026-06-02T13:13:40.518Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},,{"akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:165:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1audited', 'https://akash1audited:8443', true, '2026-06-02T13:13:40.518Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1audited', 'https://akash1audited:8443', 't', '2026-06-02T13:13:40.518Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"}' ], args: [ 'akash1audited', 'https://akash1audited:8443', true, '2026-06-02T13:13:40.518Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/provider-inventory/provider-inventory.repository.integration.ts > ProviderInventoryRepository > streamOnlineProviders > skips rows that are marked offline
Stack Traces | 0.0188s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)
params: akash1up,https://up:8443,true,2026-06-02T13:13:40.468Z,,,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/provider-inventory/provider-inventory.repository.integration.ts:220:3
 ❯ .../repositories/provider-inventory/provider-inventory.repository.integration.ts:120:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', params: [ 'akash1up', 'https://up:8443', true, '2026-06-02T13:13:40.468Z', [], [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Array
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', parameters: [ 'akash1up', 'https://up:8443', 't', '2026-06-02T13:13:40.468Z', [], [], '{}' ], args: [ 'akash1up', 'https://up:8443', true, '2026-06-02T13:13:40.468Z', [], [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > self-attribute filters > matches exact-key attributes via jsonb @>
Stack Traces | 0.0189s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1east,https://akash1east:8443,true,2026-06-02T13:13:40.444Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},[object Object],{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:107:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1east', 'https://akash1east:8443', true, '2026-06-02T13:13:40.444Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'region', value: 'us-east' } ], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1east', 'https://akash1east:8443', 't', '2026-06-02T13:13:40.444Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'region', value: 'us-east' } ], '{}' ], args: [ 'akash1east', 'https://akash1east:8443', true, '2026-06-02T13:13:40.444Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'region', value: 'us-east' } ], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > capacity filters > excludes providers whose largest node cannot fit a single replica
Stack Traces | 0.0191s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1fragmented,https://akash1fragmented:8443,true,2026-06-02T13:13:40.351Z,[object Object],4000,1000000000,0,1000000000,0,100,1000000000,0,{},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:35:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1fragmented', 'https://akash1fragmented:8443', true, '2026-06-02T13:13:40.351Z', { nodes: [], storage: {} }, 4000n, 1000000000n, 0n, 1000000000n, 0n, 100n, 1000000000n, 0n, '{}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1fragmented', 'https://akash1fragmented:8443', 't', '2026-06-02T13:13:40.351Z', { nodes: [], storage: {} }, 4000n, 1000000000n, 0n, 1000000000n, 0n, 100n, 1000000000n, 0n, '{}', '{}', [], '{}' ], args: [ 'akash1fragmented', 'https://akash1fragmented:8443', true, '2026-06-02T13:13:40.351Z', { nodes: [], storage: {} }, 4000n, 1000000000n, 0n, 1000000000n, 0n, 100n, 1000000000n, 0n, '{}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > storage_classes filter > omits the clause entirely for units without persistent storage, so providers with no storage classes stay in the result
Stack Traces | 0.0192s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1noStorage,https://akash1noStorage:8443,true,2026-06-02T13:13:40.695Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:299:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1noStorage', 'https://akash1noStorage:8443', true, '2026-06-02T13:13:40.695Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1noStorage', 'https://akash1noStorage:8443', 't', '2026-06-02T13:13:40.695Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ], args: [ 'akash1noStorage', 'https://akash1noStorage:8443', true, '2026-06-02T13:13:40.695Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > isAudited projection > returns isAudited=false when signedBy matches a different auditor
Stack Traces | 0.0193s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1other,https://akash1other:8443,true,2026-06-02T13:13:40.538Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},,{"aud-x"}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:173:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1other', 'https://akash1other:8443', true, '2026-06-02T13:13:40.538Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-x"}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1other', 'https://akash1other:8443', 't', '2026-06-02T13:13:40.538Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-x"}' ], args: [ 'akash1other', 'https://akash1other:8443', true, '2026-06-02T13:13:40.538Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-x"}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > gpu_models filter > vendor-only request excludes wrong-vendor providers
Stack Traces | 0.0194s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1nvidia,https://akash1nvidia:8443,true,2026-06-02T13:13:40.578Z,[object Object],1000000,1000000000,8,1000000000,0,1000000,1000000000,8,{"nvidia","nvidia/a100"},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:192:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1nvidia', 'https://akash1nvidia:8443', true, '2026-06-02T13:13:40.578Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1nvidia', 'https://akash1nvidia:8443', 't', '2026-06-02T13:13:40.578Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ], args: [ 'akash1nvidia', 'https://akash1nvidia:8443', true, '2026-06-02T13:13:40.578Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/provider-inventory/provider-inventory.repository.integration.ts > ProviderInventoryRepository > streamOnlineProviders > yields every row currently marked online in primary-key order
Stack Traces | 0.0195s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)
params: akash1b,https://b:8443,true,2026-06-02T13:13:40.448Z,,,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/provider-inventory/provider-inventory.repository.integration.ts:220:3
 ❯ .../repositories/provider-inventory/provider-inventory.repository.integration.ts:107:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', params: [ 'akash1b', 'https://b:8443', true, '2026-06-02T13:13:40.448Z', [], [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Array
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', parameters: [ 'akash1b', 'https://b:8443', 't', '2026-06-02T13:13:40.448Z', [], [], '{}' ], args: [ 'akash1b', 'https://b:8443', true, '2026-06-02T13:13:40.448Z', [], [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > gpu_models filter > vendor-only request matches mixed-model providers via the vendor token
Stack Traces | 0.0201s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1nvidiaA100,https://akash1nvidiaA100:8443,true,2026-06-02T13:13:40.558Z,[object Object],1000000,1000000000,8,1000000000,0,1000000,1000000000,8,{"nvidia","nvidia/a100"},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:183:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1nvidiaA100', 'https://akash1nvidiaA100:8443', true, '2026-06-02T13:13:40.558Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1nvidiaA100', 'https://akash1nvidiaA100:8443', 't', '2026-06-02T13:13:40.558Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ], args: [ 'akash1nvidiaA100', 'https://akash1nvidiaA100:8443', true, '2026-06-02T13:13:40.558Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > ClusterState passthrough > returns the persisted inventory JSONB as the candidate cluster state
Stack Traces | 0.0203s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1full,https://akash1full:8443,true,2026-06-02T13:13:40.804Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:350:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1full', 'https://akash1full:8443', true, '2026-06-02T13:13:40.804Z', { nodes: [ { name: 'node1', cpu: { allocatable: 8000, allocated: 2000 }, memory: { allocatable: 17179869184, allocated: +0 }, ephemeralStorage: { allocatable: +0, allocated: +0 }, gpu: { quantity: { allocatable: +0, allocated: +0 }, info: [] }, storageClasses: [ 'beta2' ], cpus: [] } ], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1full', 'https://akash1full:8443', 't', '2026-06-02T13:13:40.804Z', { nodes: [ { name: 'node1', cpu: { allocatable: 8000, allocated: 2000 }, memory: { allocatable: 17179869184, allocated: +0 }, ephemeralStorage: { allocatable: +0, allocated: +0 }, gpu: { quantity: { allocatable: +0, allocated: +0 }, info: [] }, storageClasses: [ 'beta2' ], cpus: [] } ], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ], args: [ 'akash1full', 'https://akash1full:8443', true, '2026-06-02T13:13:40.804Z', { nodes: [ { name: 'node1', cpu: { allocatable: 8000, allocated: 2000 }, memory: { allocatable: 17179869184, allocated: +0 }, ephemeralStorage: { allocatable: +0, allocated: +0 }, gpu: { quantity: { allocatable: +0, allocated: +0 }, info: [] }, storageClasses: [ 'beta2' ], cpus: [] } ], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/provider-inventory/provider-inventory.repository.integration.ts > ProviderInventoryRepository > deleteByOwner > deletes every row whose owner is in the given list
Stack Traces | 0.0204s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)
params: akash1a,https://akash1a:8443,true,2026-06-02T13:13:40.342Z,,,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/provider-inventory/provider-inventory.repository.integration.ts:220:3
 ❯ .../repositories/provider-inventory/provider-inventory.repository.integration.ts:29:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', params: [ 'akash1a', 'https://akash1a:8443', true, '2026-06-02T13:13:40.342Z', [], [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Array
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', parameters: [ 'akash1a', 'https://akash1a:8443', 't', '2026-06-02T13:13:40.342Z', [], [], '{}' ], args: [ 'akash1a', 'https://akash1a:8443', true, '2026-06-02T13:13:40.342Z', [], [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > self-attribute filters > compares values case-sensitively
Stack Traces | 0.0205s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1lower,https://akash1lower:8443,true,2026-06-02T13:13:40.498Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},[object Object],{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:155:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1lower', 'https://akash1lower:8443', true, '2026-06-02T13:13:40.498Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'region', value: 'us-east' } ], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1lower', 'https://akash1lower:8443', 't', '2026-06-02T13:13:40.498Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'region', value: 'us-east' } ], '{}' ], args: [ 'akash1lower', 'https://akash1lower:8443', true, '2026-06-02T13:13:40.498Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [ { key: 'region', value: 'us-east' } ], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/provider-inventory/provider-inventory.repository.integration.ts > ProviderInventoryRepository > streamOnlineProviders > keyset-paginates by owner across multiple pages until a short page ends the stream
Stack Traces | 0.0207s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)
params: akash1a,https://a:8443,true,2026-06-02T13:13:40.488Z,,,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/provider-inventory/provider-inventory.repository.integration.ts:220:3
 ❯ .../repositories/provider-inventory/provider-inventory.repository.integration.ts:130:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', params: [ 'akash1a', 'https://a:8443', true, '2026-06-02T13:13:40.488Z', [], [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Array
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', parameters: [ 'akash1a', 'https://a:8443', 't', '2026-06-02T13:13:40.488Z', [], [], '{}' ], args: [ 'akash1a', 'https://a:8443', true, '2026-06-02T13:13:40.488Z', [], [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 3802, 1009 ] }
src/repositories/provider-inventory/provider-inventory.repository.integration.ts > ProviderInventoryRepository > bulkUpsertProviders > inserts a row for each provider with its attributes
Stack Traces | 0.0214s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, default, default, default, default, default, default, default, default, default, default, default, default, default, $3, $4, $5, now()) on conflict ("owner") do update set "host_uri" = excluded.host_uri, "self_attributes" = excluded.self_attributes, "signed_attributes" = excluded.signed_attributes, "audited_by" = excluded.audited_by, "updated_at" = now()
params: akash1a,https://h:8443,[object Object],[object Object],{"aud-1"}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ ProviderInventoryRepository.bulkUpsertProviders .../repositories/provider-inventory/provider-inventory.repository.ts:112:5
 ❯ .../repositories/provider-inventory/provider-inventory.repository.integration.ts:44:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, default, default, default, default, default, default, default, default, default, default, default, default, default, $3, $4, $5, now()) on conflict ("owner") do update set "host_uri" = excluded.host_uri, "self_attributes" = excluded.self_attributes, "signed_attributes" = excluded.signed_attributes, "audited_by" = excluded.audited_by, "updated_at" = now()', params: [ 'akash1a', 'https://h:8443', [ { key: 'region', value: 'us-east' } ], [ { key: 'tier', value: 'gold', auditor: 'aud-1' } ], '{"aud-1"}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Array
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, default, default, default, default, default, default, default, default, default, default, default, default, default, $3, $4, $5, now()) on conflict ("owner") do update set "host_uri" = excluded.host_uri, "self_attributes" = excluded.self_attributes, "signed_attributes" = excluded.signed_attributes, "audited_by" = excluded.audited_by, "updated_at" = now()', parameters: [ 'akash1a', 'https://h:8443', [ { key: 'region', value: 'us-east' } ], [ { key: 'tier', value: 'gold', auditor: 'aud-1' } ], '{"aud-1"}' ], args: [ 'akash1a', 'https://h:8443', [ { key: 'region', value: 'us-east' } ], [ { key: 'tier', value: 'gold', auditor: 'aud-1' } ], '{"aud-1"}' ], types: [ 25, 25, 3802, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > gpu_models filter > treats multiple GPU attributes on one unit as OR alternatives via overlap
Stack Traces | 0.0217s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1nvidia,https://akash1nvidia:8443,true,2026-06-02T13:13:40.596Z,[object Object],1000000,1000000000,8,1000000000,0,1000000,1000000000,8,{"nvidia","nvidia/a100"},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:201:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1nvidia', 'https://akash1nvidia:8443', true, '2026-06-02T13:13:40.596Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1nvidia', 'https://akash1nvidia:8443', 't', '2026-06-02T13:13:40.596Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ], args: [ 'akash1nvidia', 'https://akash1nvidia:8443', true, '2026-06-02T13:13:40.596Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/provider-inventory/provider-inventory.repository.integration.ts > ProviderInventoryRepository > bulkUpsertProviders > updates hostUri and attributes for an owner that already exists
Stack Traces | 0.0217s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)
params: akash1a,https://old:8443,true,2026-06-02T13:13:40.384Z,[object Object],,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/provider-inventory/provider-inventory.repository.integration.ts:220:3
 ❯ .../repositories/provider-inventory/provider-inventory.repository.integration.ts:66:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', params: [ 'akash1a', 'https://old:8443', true, '2026-06-02T13:13:40.384Z', [ { key: 'region', value: 'us-west' } ], [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Array
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', parameters: [ 'akash1a', 'https://old:8443', 't', '2026-06-02T13:13:40.384Z', [ { key: 'region', value: 'us-west' } ], [], '{}' ], args: [ 'akash1a', 'https://old:8443', true, '2026-06-02T13:13:40.384Z', [ { key: 'region', value: 'us-west' } ], [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > storage_classes filter > requires the provider to declare every persistent class on the unit (containment, not overlap)
Stack Traces | 0.0218s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1beta2Only,https://akash1beta2Only:8443,true,2026-06-02T13:13:40.676Z,[object Object],1000000,1000000000,0,1000000000,10000,1000000,1000000000,0,{},{"beta2"},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:270:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1beta2Only', 'https://akash1beta2Only:8443', true, '2026-06-02T13:13:40.676Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 10000n, 1000000n, 1000000000n, 0n, '{}', '{"beta2"}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1beta2Only', 'https://akash1beta2Only:8443', 't', '2026-06-02T13:13:40.676Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 10000n, 1000000n, 1000000000n, 0n, '{}', '{"beta2"}', [], '{}' ], args: [ 'akash1beta2Only', 'https://akash1beta2Only:8443', true, '2026-06-02T13:13:40.676Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 10000n, 1000000n, 1000000000n, 0n, '{}', '{"beta2"}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/provider-inventory/provider-inventory.repository.integration.ts > ProviderInventoryRepository > bulkUpsertProviders > sorts the provider's auditedBy list before writing
Stack Traces | 0.0219s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, default, default, default, default, default, default, default, default, default, default, default, default, default, $3, $4, $5, now()) on conflict ("owner") do update set "host_uri" = excluded.host_uri, "self_attributes" = excluded.self_attributes, "signed_attributes" = excluded.signed_attributes, "audited_by" = excluded.audited_by, "updated_at" = now()
params: akash1a,https://p:8443,,,{"auditor-a","auditor-z"}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ ProviderInventoryRepository.bulkUpsertProviders .../repositories/provider-inventory/provider-inventory.repository.ts:112:5
 ❯ .../repositories/provider-inventory/provider-inventory.repository.integration.ts:88:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, default, default, default, default, default, default, default, default, default, default, default, default, default, $3, $4, $5, now()) on conflict ("owner") do update set "host_uri" = excluded.host_uri, "self_attributes" = excluded.self_attributes, "signed_attributes" = excluded.signed_attributes, "audited_by" = excluded.audited_by, "updated_at" = now()', params: [ 'akash1a', 'https://p:8443', [], [], '{"auditor-a","auditor-z"}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Array
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, default, default, default, default, default, default, default, default, default, default, default, default, default, $3, $4, $5, now()) on conflict ("owner") do update set "host_uri" = excluded.host_uri, "self_attributes" = excluded.self_attributes, "signed_attributes" = excluded.signed_attributes, "audited_by" = excluded.audited_by, "updated_at" = now()', parameters: [ 'akash1a', 'https://p:8443', [], [], '{"auditor-a","auditor-z"}' ], args: [ 'akash1a', 'https://p:8443', [], [], '{"auditor-a","auditor-z"}' ], types: [ 25, 25, 3802, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > gpu_models filter > emits a separate clause per non-empty unit and ANDs them, so providers must cover divergent GPU needs
Stack Traces | 0.0221s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1nvidiaOnly,https://akash1nvidiaOnly:8443,true,2026-06-02T13:13:40.620Z,[object Object],1000000,1000000000,8,1000000000,0,1000000,1000000000,8,{"nvidia","nvidia/a100"},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:222:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1nvidiaOnly', 'https://akash1nvidiaOnly:8443', true, '2026-06-02T13:13:40.620Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1nvidiaOnly', 'https://akash1nvidiaOnly:8443', 't', '2026-06-02T13:13:40.620Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ], args: [ 'akash1nvidiaOnly', 'https://akash1nvidiaOnly:8443', true, '2026-06-02T13:13:40.620Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 8n, 1000000000n, 0n, 1000000n, 1000000000n, 8n, '{"nvidia","nvidia/a100"}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > signedBy > requires every auditor in allOf via @>
Stack Traces | 0.0228s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1a,https://akash1a:8443,true,2026-06-02T13:13:40.390Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},,{"aud-a"}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:77:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1a', 'https://akash1a:8443', true, '2026-06-02T13:13:40.390Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-a"}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1a', 'https://akash1a:8443', 't', '2026-06-02T13:13:40.390Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-a"}' ], args: [ 'akash1a', 'https://akash1a:8443', true, '2026-06-02T13:13:40.390Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{"aud-a"}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > storage_classes filter > emits a clause only for units with persistent volumes in a mixed deployment
Stack Traces | 0.0228s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1beta2,https://akash1beta2:8443,true,2026-06-02T13:13:40.717Z,[object Object],1000000,1000000000,0,1000000000,10000,1000000,1000000000,0,{},{"beta2"},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:308:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1beta2', 'https://akash1beta2:8443', true, '2026-06-02T13:13:40.717Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 10000n, 1000000n, 1000000000n, 0n, '{}', '{"beta2"}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1beta2', 'https://akash1beta2:8443', 't', '2026-06-02T13:13:40.717Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 10000n, 1000000n, 1000000000n, 0n, '{}', '{"beta2"}', [], '{}' ], args: [ 'akash1beta2', 'https://akash1beta2:8443', true, '2026-06-02T13:13:40.717Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 10000n, 1000000n, 1000000000n, 0n, '{}', '{"beta2"}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > capacity filters > excludes providers whose total available capacity falls short
Stack Traces | 0.0393s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1small,https://akash1small:8443,true,2026-06-02T13:13:40.315Z,[object Object],500,1000000000,0,1000000000,0,500,1000000000,0,{},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:26:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1small', 'https://akash1small:8443', true, '2026-06-02T13:13:40.315Z', { nodes: [], storage: {} }, 500n, 1000000000n, 0n, 1000000000n, 0n, 500n, 1000000000n, 0n, '{}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1small', 'https://akash1small:8443', 't', '2026-06-02T13:13:40.315Z', { nodes: [], storage: {} }, 500n, 1000000000n, 0n, 1000000000n, 0n, 500n, 1000000000n, 0n, '{}', '{}', [], '{}' ], args: [ 'akash1small', 'https://akash1small:8443', true, '2026-06-02T13:13:40.315Z', { nodes: [], storage: {} }, 500n, 1000000000n, 0n, 1000000000n, 0n, 500n, 1000000000n, 0n, '{}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
src/repositories/provider-inventory/provider-inventory.repository.integration.ts > ProviderInventoryRepository > deleteByOwner > deletes the row for the given owner
Stack Traces | 0.0441s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)
params: akash1gone,https://akash1gone:8443,true,2026-06-02T13:13:40.305Z,,,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/provider-inventory/provider-inventory.repository.integration.ts:220:3
 ❯ .../repositories/provider-inventory/provider-inventory.repository.integration.ts:18:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', params: [ 'akash1gone', 'https://akash1gone:8443', true, '2026-06-02T13:13:40.305Z', [], [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Array
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, default, default, default, default, default, default, default, default, default, default, default, $5, $6, $7, default)', parameters: [ 'akash1gone', 'https://akash1gone:8443', 't', '2026-06-02T13:13:40.305Z', [], [], '{}' ], args: [ 'akash1gone', 'https://akash1gone:8443', true, '2026-06-02T13:13:40.305Z', [], [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 3802, 1009 ] }
src/repositories/bid-screening/bid-screening.repository.integration.ts > BidScreeningRepository > online filter > excludes rows where is_online is false
Stack Traces | 0.0482s run time
Error: Failed query: insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)
params: akash1up,https://akash1up:8443,true,2026-06-02T13:13:40.764Z,[object Object],1000000,1000000000,0,1000000000,0,1000000,1000000000,0,{},{},,{}
 ❯ PostgresJsPreparedQuery.queryWithCache ../...../src/pg-core/session.ts:73:10
 ❯ seed .../repositories/bid-screening/bid-screening.repository.integration.ts:397:5
 ❯ .../repositories/bid-screening/bid-screening.repository.integration.ts:330:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', params: [ 'akash1up', 'https://akash1up:8443', true, '2026-06-02T13:13:40.764Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ] }
Caused by: Caused by: TypeError: The "string" argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
 ❯ reset.str ../...../postgres/src/bytes.js:22:27
 ❯ ../...../postgres/src/connection.js:938:16
 ❯ Bind ../...../postgres/src/connection.js:928:16
 ❯ prepared ../...../postgres/src/connection.js:204:7
 ❯ ParameterDescription ../...../postgres/src/connection.js:607:58
 ❯ handle ../...../postgres/src/connection.js:474:6
 ❯ Socket.data ../...../postgres/src/connection.js:315:9

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE', query: 'insert into "provider_inventory" ("owner", "host_uri", "is_online", "is_online_since", "inventory", "total_available_cpu", "total_available_memory", "total_available_gpu", "total_available_eph", "total_available_persistent", "max_node_free_cpu", "max_node_free_memory", "max_node_free_gpu", "gpu_models", "storage_classes", "self_attributes", "signed_attributes", "audited_by", "updated_at") values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, default, $17, default)', parameters: [ 'akash1up', 'https://akash1up:8443', 't', '2026-06-02T13:13:40.764Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ], args: [ 'akash1up', 'https://akash1up:8443', true, '2026-06-02T13:13:40.764Z', { nodes: [], storage: {} }, 1000000n, 1000000000n, 0n, 1000000000n, 0n, 1000000n, 1000000000n, 0n, '{}', '{}', [], '{}' ], types: [ 25, 25, 16, 1184, 3802, 20, 20, 20, 20, 20, 20, 20, 20, 1009, 1009, 3802, 1009 ] }
test/functional/discovery-pipeline.spec.ts > DiscoveryScheduler pipeline > closes the old stream and opens a new one when the provider's hostUri changes
Stack Traces | 0.0488s run time
AssertionError: expected [] to include 'https://old:8443'
 ❯ test/functional/discovery-pipeline.spec.ts:47:26
test/functional/discovery-pipeline.spec.ts > DiscoveryScheduler pipeline > swallows poller errors and leaves prior state intact
Stack Traces | 0.0541s run time
AssertionError: expected undefined to be defined
 ❯ test/functional/discovery-pipeline.spec.ts:96:32
test/functional/discovery-pipeline.spec.ts > DiscoveryScheduler pipeline > deletes the row and aborts the stream when the provider is removed from chain
Stack Traces | 0.0542s run time
AssertionError: expected undefined to be defined
 ❯ test/functional/discovery-pipeline.spec.ts:56:32
test/functional/discovery-pipeline.spec.ts > DiscoveryScheduler pipeline > writes a row and opens a stream when a brand-new provider appears
Stack Traces | 0.0888s run time
AssertionError: expected undefined to match object { owner: 'a', …(1) }

- Expected:
{
  "host_uri": "https://a:8443",
  "owner": "a",
}

+ Received:
undefined

 ❯ test/functional/discovery-pipeline.spec.ts:29:17
test/functional/discovery-pipeline.spec.ts > DiscoveryScheduler pipeline > propagates inventory writes from stream messages into the database
Stack Traces | 1.04s run time
AssertionError: expected undefined to match object { is_online: true, …(1) }

- Expected:
{
  "is_online": true,
  "total_available_cpu": 4000n,
}

+ Received:
undefined

 ❯ test/functional/discovery-pipeline.spec.ts:86:23

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@stalniy stalniy force-pushed the refactor/upgrade-drizzle branch from bd5c49d to f4becbf Compare June 2, 2026 12:23
@github-actions github-actions Bot added size: S and removed size: XS labels Jun 2, 2026
@stalniy stalniy force-pushed the refactor/upgrade-drizzle branch from f4becbf to cf28896 Compare June 2, 2026 12:27
…apping

drizzle-orm 0.45's postgres-js driver overrides the jsonb (OID 3802)
serializer with a passthrough, so custom jsonb types must stringify
their values themselves; the jsonbBigint customType now reuses
serializeJsonb (which preserves bigints) instead of relying on
postgres.js's default serializer.

drizzle-orm >=0.44 also wraps every driver error in DrizzleQueryError,
so isUniqueViolation no longer matched the raw PostgresError. The
helper now unwraps the underlying PostgresError via .cause, and
user.service uses the same helper to read constraint_name from the
unwrapped error.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@stalniy stalniy force-pushed the refactor/upgrade-drizzle branch from cf28896 to 873e405 Compare June 2, 2026 13:11
@github-actions github-actions Bot added size: XS and removed size: S labels Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant