CordOriginal post
Rank 2: Process
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:
{
"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:
{
"message": "Invalid document structure: Unknown attribute: \"pingCount\"",
"code": 400,
"type": "document_invalid_structure",
"version": "1.6.1"
}
Summary
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.