Rank 4: Virtual Machine
I've got a table with the below column created. When I try to insert the value [-3408048000] into it, the dart sdk cloud function call is successful (no error logs in selfhosted docker). However, any attempt at loading the Rows tab in the console breaks: the UI breaks, a network request to /rows?queries... fails with error 500 ({"message":"Server Error","code":500,"type":"general_unknown","version":"1.9.6"}) and the docker logs has the below error:
http.request · 5.2ms · 59ffc126
level error
http.method GET
http.path /v1/tablesdb/:databaseId/tables/:tableId/rows
http.response.code 500
Error: Cannot use object of type MongoDB\BSON\Int64 as array
at /usr/src/code/vendor/utopia-php/database/src/Database/Document.php:49
at /usr/src/code/vendor/utopia-php/database/src/Database/Adapter/Mongo.php:2236
at /usr/src/code/vendor/utopia-php/database/src/Database/Adapter/Pool.php:79
at /usr/src/code/vendor/utopia-php/pools/src/Pools/Pool.php:229
... 13 more
Column CLI create command:
sudo appwrite databases create-integer-attribute \
--database-id "$DATABASE_ID" \
--collection-id "$COL_ID" \
--key "listOfIntegers" \
--array true \
--required true