Error on update database Incomplete Data

curl --location --request PUT 'https://analytics.myfeats.com/api/database/4' \
--header 'Content-Type: application/json' \
--header 'X-Metabase-Session: f7802e4f-7ddb...4ebf25d1acec' \
--header 'Accept-Encoding: application/json' \
--header 'Cookie: metabase.DEVICE=b13442ea-3441-4e9e-acc8-45b598fdef6e' \
--data-raw '{
    "engine": "mongo",
    "name": "feats-staging",
    "details": {
        "use-connection-uri": false,
        "host": "35.246.79.195",
        "dbname": "meteor",
        "port": 27017,
        "user": "app-user",
        "pass": "zi0Kei...eix1",
        "authdb": null,
        "additional-options": null,
        "use-srv": false,
        "ssl": true,
        "ssl-cert": "-----BEGIN CERTIFICATE-----MIIDCTCCAfGgAwIBAgIUBll82CNGyUtnGemqlpYfOWNKtkkwDQYJKoZIhvcNAQELBQAwFDESMBA.....==-----END CERTIFICATE-----",
     "tunnel-enabled": false
    },
    "auto_run_queries": true,
    "refingerprint": null,
    "is_full_sync": true,
    "is_on_demand": false,
    "schedules": {
        "metadata_sync": {
            "schedule_minute": 35,
            "schedule_day": null,
            "schedule_frame": null,
            "schedule_hour": null,
            "schedule_type": "hourly"
        },
        "cache_field_values": {
            "schedule_minute": 0,
            "schedule_day": null,
            "schedule_frame": null,
            "schedule_hour": 9,
            "schedule_type": "daily"
        }
    },
    "id": "4"
}'

Error
{ "valid": false, "dbname": "java.io.IOException: Incomplete data", "message": "java.io.IOException: Incomplete data" }

Hi @bibo
You are providing extremely little information.
Trying doing it through the Metabase interface. If it work there, then there's something wrong with your API request. Use your browser developer Network-tab to copy requests as cURL for something to compare with.