๐ Bug Report: [Android] [Realtime Feature] Subscribing to a cloud function execution - Missing ID and read parameters when using the Execution class as payloadType
SebastianTMo opened this issue ยท 1 comments
SebastianTMo commented
๐ Reproduction steps
[Appwrite Version 0.12]
[Android SDK Version 0.3.2]
Try to subscribe to a Cloud Function Execution
using the Execution class as payloadType, process the payload data in the callback function.
๐ Expected behavior
Having all relevant data available as per:
https://appwrite.io/docs/models/execution
๐ Actual Behavior
ID
and read
paramenters are null.
Root cause seems to be missing annotations for below two lines:
and
Workaround: Using a custom data class with the appropriate annotations, e.g.:
import com.google.gson.annotations.SerializedName
data class ExecutionObjectResponse(
val dateCreated: Long,
val exitCode: Long,
val functionId: String,
@SerializedName("\$id")
val id: String,
@SerializedName("\$read")
val read: List<String>,
val status: String,
val stderr: String,
val stdout: String,
val time: Double,
val trigger: String
)
๐ฒ Appwrite version
Different version (specify in environment)
๐ป 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?
- I have read the Code of Conduct
abnegate commented
Fixed in version 0.3.3 ๐ฅณ