Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix serialization issue #319

Merged
merged 12 commits into from
Dec 4, 2024
Merged

Fix serialization issue #319

merged 12 commits into from
Dec 4, 2024

Conversation

lassemand
Copy link
Contributor

@lassemand lassemand commented Dec 4, 2024

Purpose

❯ kubectl logs ccdscan-indexer-959cb5855-j687w --previous
2024-12-04T10:27:02.227910Z  INFO ccdscan_indexer: Metrics server is running at 0.0.0.0:13030
2024-12-04T10:27:02.228934Z  INFO concordium_scan::indexer: Indexing from block height 90777
2024-12-04T10:27:02.246321Z  INFO concordium_scan::indexer: Connection established to node at uri: https://reporters.internal.stagenet.concordium.com:20000/
2024-12-04T10:27:02.327368Z ERROR ccd_event_processor: Failed to process event: error returned from database: unsupported Unicode escape sequence. Took 66ms to fail.
2024-12-04T10:27:02.327383Z  INFO ccd_event_processor: Retrying in 5000ms.
2024-12-04T10:27:07.328284Z  INFO concordium_scan::indexer: Failed processing 1 times in row: error returned from database: unsupported Unicode escape sequence

Underlying reason is that we serialise decoded data when using Cbor in the indexer.

Changes

Change decoding from indexer to api

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

@lassemand lassemand changed the title Lma/fix/serialization Fix serialization issue Dec 4, 2024
@lassemand lassemand marked this pull request as ready for review December 4, 2024 10:31
backend-rust/src/graphql_api.rs Show resolved Hide resolved
@lassemand lassemand merged commit 46871c6 into main Dec 4, 2024
6 checks passed
@lassemand lassemand deleted the lma/fix/serialization branch December 4, 2024 14:23
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.

2 participants