Skip to content
Back

client.ping() does not appear to work.

  • 0
  • Self Hosted
  • Flutter
  • REST API
Cord
4 Dec, 2025, 12:26

After upgrading to 1.8.0, I ran the starter_for_flutter and tested the ping. It failed with a "Server Error". I tried this again on my production instance (1.6.1) and it failed with a "Invalid document structure: Unknown attribute: pingCount".

I can't find anything in the docs. Is this a known issue?

1.8.0 results:

TypeScript
{
    "message": "Server Error",
    "code": 500,
    "type": "general_unknown",
    "version": "1.8.0",
    "file": "/usr/src/code/vendor/utopia-php/database/src/Database/Database.php",
    "line": 4896,
    "trace": [
        {
            "file": "/usr/src/code/vendor/utopia-php/database/src/Database/Adapter.php",
            "line": 385,
            "function": "Utopia\\Database\\{closure}",
            "class": "Utopia\\Database\\Database",
            "type": "->",
            "args": []
        },
        {
            "file": "/usr/src/code/vendor/utopia-php/database/src/Database/Database.php",
            "line": 1214,
            "function": "withTransaction",
            "class": "Utopia\\Database\\Adapter",
            "type": "->",
            "args": [
                {}
            ]
        },
        {
            "file": "/usr/src/code/vendor/utopia-php/database/src/Database/Database.php",
            "line": 4730,
            "function": "withTransaction",
            "class": "Utopia\\Database\\Database",
            "type": "->",
            "args": [
                {}
            ]
        },
        {
            "file": "/usr/src/code/app/controllers/general.php",
            "line": 1584,
            "function": "updateDocument",
            "class": "Utopia\\Database\\Database",
            "type": "->",
            "args": [
                {
                    (...trimmed...)

1.6.1 result:

TypeScript
{
    "message": "Invalid document structure: Unknown attribute: \"pingCount\"",
    "code": 400,
    "type": "document_invalid_structure",
    "version": "1.6.1"
}
TL;DR
Issue: After upgrading to version 1.8.0, developers are experiencing errors with the `client.ping()` function showing "Server Error" or "Unknown attribute: pingCount". This problem was also seen in version 1.6.1. Solution: The issue may be related to changes in the document structure between versions. Check the documentation for any changes or consult with the framework's support for assistance on resolving this problem.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more