Skip to content

Database error: SQLx error: error occurred while decoding column "last_synced_at" #351

@josefinalliende

Description

@josefinalliende

Context

When I run the app in ios emulator (that had data before the big plans PR in flutter side) I get this error:

flutter: The following _$ApiError_WhitenoiseImpl was thrown initialize:
flutter: ApiError.whitenoise(message: Database error: SQLx error: error occurred while decoding column
flutter: "last_synced_at": mismatched types; Rust type `core::option::Option<i64>` (as SQL type `INTEGER`) is
flutter: not compatible with SQL type `TEXT`)
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0      SimpleDecoder.decode (package:flutter_rust_bridge/src/codec/base.dart:32:9)
flutter: #1      SseCodec._decode (package:flutter_rust_bridge/src/codec/sse.dart:45:55)
flutter: #2      SseCodec.decodeObject (package:flutter_rust_bridge/src/codec/sse.dart:35:12)

Steps to reproduce

Smartphone (please complete the following information):

  • Device: iPhone 16e
  • OS: iOS 18.5

Additional context
Initially I wrote the issue in the flutter repo, but I think it's more related to this one, this is the original issue:
parres-hq/whitenoise_flutter#578

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions