#[SOLVED] - creash when i try to use incrementRowColumn
30 messages · Page 1 of 1 (latest)
nice response team, i think now time to change the db
thanks for sharing this, i have assigned the issue to myself and take a look shortly
apologies for the wait 🙏
still this problem not solve
sorry for the wait, i have the backlog ticket assigned but currenly stuck with other higher priority tickets. will see if i can find quick fix this weekend
No problem brother, when you try to solve it that time if you need help for testing then tell me
@faint dagger debugged, looks like tableId is missing from the API response itself. i have alerted the db team about it, thanks for your paitence 🙏
What the hack, i was thinking that db give invalid response
ha yeah not returning tableid is invalid response, it should return entire Row model. if u check ur data after making call u can see the column is incrementing successfully
Yes, column is incrementing and get error regarding the row data
update: fix is underday, PR has been raised
thanks buddy
also check the https://appwrite.io/docs/products/databases/operators
tables.updateRow(
databaseId = databaseId, tableId = ownerTable, rowId = rowId, data = mapOf(
"area_count" to Operator.decrement(1)
)
)
with this also get the "Server Error" so make
any update on this one ? @solar drift
pretty sure it was merged and released, right @rare heath ?
Still getting the issue?
yes ,
2025-12-31 04:07:42.548 32487-5630 AndroidRuntime pid-32487 E FATAL EXCEPTION: OkHttp Dispatcher
Process: com.h2osupply.owner, PID: 32487
java.lang.NullPointerException: null cannot be cast to non-null type kotlin.String
at io.appwrite.models.Row$Companion.from(Row.kt:98)
at io.appwrite.services.TablesDB$incrementRowColumn$converter$1.invoke(TablesDB.kt:751)
at io.appwrite.services.TablesDB$incrementRowColumn$converter$1.invoke(TablesDB.kt:749)
at io.appwrite.Client$awaitResponse$2$1.onResponse(Client.kt:602)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652)
at java.lang.Thread.run(Thread.java:1563)
sdkForAndroid = "11.4.0"
sdk-for1-android = { module = "io.appwrite:sdk-for-android", version.ref = "sdkForAndroid" }
@rare heath & @solar drift also there is problem with this funcation :
also check the https://appwrite.io/docs/products/databases/operators
tables.updateRow(
databaseId = databaseId, tableId = ownerTable, rowId = rowId, data = mapOf(
"area_count" to Operator.decrement(1)
)
)
with this also get the "Server Error" so make
also decrement not work
arnab is looking into reproducing it as we believe it should be fixed, can you try share a small reproducable example as well?
i see by logs ur using android sdk, so might be sdk specific issue too
this is the file and the discord can be allowed to pass it, so check it out.
i have try to understand but in database and tabledb both has same code and also can you tell me how to see what are the responce from this :
return client.call(
"PATCH",
apiPath,
apiHeaders,
apiParams,
responseType = classOf(),
converter,
) ?
thank you, cc @rare heath
at io.appwrite.models.Row$Companion.from(Row.kt:98) == databaseId = map["$databaseId"] as String,
from this :
companion object {
operator fun invoke(
id: String,
sequence: Long,
tableId: String,
databaseId: String,
createdAt: String,
updatedAt: String,
permissions: List<String>,
data: Map<String, Any>
) = Row<Map<String, Any>>(
id,
sequence,
tableId,
databaseId,
createdAt,
updatedAt,
permissions,
data
)
@Suppress("UNCHECKED_CAST")
fun <T> from(
map: Map<String, Any>,
nestedType: Class<T>
) = Row<T>(
id = map["\$id"] as String,
sequence = (map["\$sequence"] as Number).toLong(),
tableId = map["\$tableId"] as String,
databaseId = map["\$databaseId"] as String,
createdAt = map["\$createdAt"] as String,
updatedAt = map["\$updatedAt"] as String,
permissions = map["\$permissions"] as List<String>,
data = map["data"]?.jsonCast(to = nestedType) ?: map.jsonCast(to = nestedType)
)
}
at io.appwrite.services.TablesDB$incrementRowColumn$converter$1.invoke(TablesDB.kt:751) at io.appwrite.services.TablesDB$incrementRowColumn$converter$1.invoke(TablesDB.kt:749) == val converter: (Any) -> io.appwrite.models.Row<T> = {
@Suppress("UNCHECKED_CAST")
io.appwrite.models.Row.from(map = it as Map<String, Any>, nestedType)
}
@faint dagger we released another fix as noticed by @wary path that some responses were missing databaseId in them, can you please check if issue still persists?
ah he created another thread
let me check after 10 min
Working best, and closing the ticket