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

🐛 Bug Report: Null instead of bool error arises while mapping User's key «labels» #240

Open
2 tasks done
capsidimit opened this issue Feb 23, 2025 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@capsidimit
Copy link

capsidimit commented Feb 23, 2025

👟 Reproduction steps

  1. Start a new session Account(client).createEmailPasswordSession(...)
  2. Try to get current user's instance: Account(client).get()

👍 Expected behavior

Return data of the currently logged in user.

👎 Actual Behavior

Throws "TypeError: null: type 'Null' is not a subtype of type 'bool'":

errors.dart:307 Uncaught (in promise) DartError: TypeError: null: type 'Null' is not a subtype of type 'bool'
    at Object.throw_ [as throw] (errors.dart:307:3)
    at Object._failedAsCheck (profile.dart:117:39)
    at dart_rti.Rti.new._generalAsCheckImplementation (rti.dart:1554:3)
    at Target.fromMap (target.dart:53:23)
    at _internal.MappedListIterable.new.<anonymous> (user.dart:103:67)
    at _internal.MappedListIterable.new.elementAt (iterable.dart:442:31)
    at _internal.ListIterator.new.moveNext (iterable.dart:371:26)
    at JsIterator.next (operations.dart:1127:20)
    at List.from (core_patch.dart:345:16)
    at User.fromMap (user.dart:103:16)
    at account.dart:23:24
    at async_patch.dart:622:19
    at async_patch.dart:647:23
    at async_patch.dart:593:31
    at _RootZone.runUnary (zone.dart:1849:54)
    at async._FutureListener.thenAwait.handleValue (future_impl.dart:208:18)
    at handleValueCallback (future_impl.dart:932:44)
    at _Future._propagateToListeners (future_impl.dart:961:13)
    at [_completeWithValue] (future_impl.dart:712:5)
    at async._AsyncAwaitCompleter.new.complete (async_patch.dart:503:7)
    at Object._asyncReturn (async_patch.dart:570:12)
    at client_browser.dart:238:3
    at async_patch.dart:622:19
    at async_patch.dart:647:23
    at async_patch.dart:593:31
    at _RootZone.runUnary (zone.dart:1849:54)
    at async._FutureListener.thenAwait.handleValue (future_impl.dart:208:18)
    at handleValueCallback (future_impl.dart:932:44)
    at _Future._propagateToListeners (future_impl.dart:961:13)
    at [_completeWithValue] (future_impl.dart:712:5)
    at async._AsyncAwaitCompleter.new.complete (async_patch.dart:503:7)
    at Object._asyncReturn (async_patch.dart:570:12)
    at client_mixin.dart:127:3
    at async_patch.dart:622:19
    at async_patch.dart:647:23
    at async_patch.dart:593:31
    at _RootZone.runUnary (zone.dart:1849:54)
    at async._FutureListener.thenAwait.handleValue (future_impl.dart:208:18)
    at handleValueCallback (future_impl.dart:932:44)
    at _Future._propagateToListeners (future_impl.dart:961:13)
    at [_completeWithValue] (future_impl.dart:712:5)
    at async._AsyncAwaitCompleter.new.complete (async_patch.dart:503:7)
    at Object._asyncReturn (async_patch.dart:570:12)
    at response.dart:64:3
    at async_patch.dart:622:19
    at async_patch.dart:647:23
    at async_patch.dart:593:31
    at _RootZone.runUnary (zone.dart:1849:54)
    at async._FutureListener.thenAwait.handleValue (future_impl.dart:208:18)
    at handleValueCallback (future_impl.dart:932:44)
    at _Future._propagateToListeners (future_impl.dart:961:13)
    at [_completeWithValue] (future_impl.dart:712:5)
    at async._AsyncCallbackEntry.new.callback (future_impl.dart:792:7)
    at Object._microtaskLoop (schedule_microtask.dart:40:11)
    at _startMicrotaskLoop (schedule_microtask.dart:49:5)
    at async_patch.dart:186:7

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Windows

🧱 Your Environment

  • appwrite sdk 14.0.0
  • appwrite selfhosted 1.6.0
  • Chrome v.133.0.6943.127

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@capsidimit capsidimit added the bug Something isn't working label Feb 23, 2025
@Kolovrat19
Copy link

Downgrade to appwrite sdk 13.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants