Skip to content

fix: add try catch to handle app state decode error#532

Merged
PatrickDinh merged 2 commits intomainfrom
fix/catch-app-state-decode-error
Dec 8, 2025
Merged

fix: add try catch to handle app state decode error#532
PatrickDinh merged 2 commits intomainfrom
fix/catch-app-state-decode-error

Conversation

@PatrickDinh
Copy link
Copy Markdown
Contributor

@PatrickDinh PatrickDinh commented Nov 26, 2025

Currently, the application page would cash if there is an error during decoding app state. For example, attempting to decode an empty byte array to address. This fix wraps the decoding logic in a try catch. It logs a warning on error and return the raw state.

This should fix #533

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Dec 8, 2025

Deploying algokit-lora with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6e74500
Status: ✅  Deploy successful!
Preview URL: https://04edc798.algokit-lora.pages.dev
Branch Preview URL: https://fix-catch-app-state-decode-e.algokit-lora.pages.dev

View logs

@PatrickDinh PatrickDinh merged commit 090bee8 into main Dec 8, 2025
2 checks passed
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.

Application page failed to load if app state value not set

2 participants