Skip to content

Revert InMemoryStorage in ArkClient to fix startup timeout#3522

Merged
TaprootFreak merged 1 commit intodevelopfrom
fix/revert-ark-inmemory-storage
Mar 27, 2026
Merged

Revert InMemoryStorage in ArkClient to fix startup timeout#3522
TaprootFreak merged 1 commit intodevelopfrom
fix/revert-ark-inmemory-storage

Conversation

@TaprootFreak
Copy link
Copy Markdown
Collaborator

Summary

  • Remove InMemoryWalletRepository and InMemoryContractRepository from Ark wallet creation
  • These imports may be causing slow module loading that leads to container startup timeouts on Azure (230s timeout exceeded)

Context

The dev API is down since PR #3519 was merged. The container fails to start within the 230s timeout.

Azure logs show a ~60 second delay between node dist/src/main and [NestFactory] Starting Nest application..., suggesting slow imports.

This is a diagnostic change to isolate if the @arkade-os/sdk InMemory classes are the cause.

Test plan

  • Merge and deploy to dev
  • Check if container starts successfully
  • If startup still fails, the issue is elsewhere

Remove InMemoryWalletRepository and InMemoryContractRepository from
Ark wallet creation - these may be causing slow imports that lead to
container startup timeouts on Azure.

This is a diagnostic change to isolate the cause of dev API downtime.
@TaprootFreak TaprootFreak marked this pull request as ready for review March 27, 2026 16:40
@TaprootFreak TaprootFreak merged commit 07149e1 into develop Mar 27, 2026
7 checks passed
@TaprootFreak TaprootFreak deleted the fix/revert-ark-inmemory-storage branch March 27, 2026 16:40
TaprootFreak added a commit that referenced this pull request Mar 27, 2026
The revert in #3522 was based on a misdiagnosis — the actual cause of
dev API downtime was a FK constraint violation in the sell-if-deficit
migration, not the Ark InMemory imports.

Without explicit storage config, the Ark SDK falls back to IndexedDB
which is not available in Node.js, causing wallet initialization to fail.
TaprootFreak added a commit that referenced this pull request Mar 27, 2026
The revert in #3522 was based on a misdiagnosis — the actual cause of
dev API downtime was a FK constraint violation in the sell-if-deficit
migration, not the Ark InMemory imports.

Without explicit storage config, the Ark SDK falls back to IndexedDB
which is not available in Node.js, causing wallet initialization to fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant