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: Realtime throws type 'Null' is not a subtype of type 'Map<dynamic, dynamic>' exception #1026

Open
5 of 6 tasks
stnguyen90 opened this issue Jan 15, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@stnguyen90
Copy link
Contributor

stnguyen90 commented Jan 15, 2025

👟 Reproduction steps

  1. Subscribe to a channel on Appwrite Cloud
  2. Wait for the ping/pong heartbeat messages

👍 Expected behavior

No errors occur

👎 Actual Behavior

Error:

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: type 'Null' is not a subtype of type 'Map<dynamic, dynamic>'

This occurs because the pong message from the heartbeat ping does not contain the data property so the parsing of the message fails.

🔗 Related

📋 Tasks

  • Fix error handling pong message in Flutter SDK
  • Fix error handling pong message in Android SDK
  • Fix error handling pong message in iOS SDK
  • Fix typing in Web/React Native SDKs

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

No response

👀 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?

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