#community-help

Updating Collection Schema on Typesense Cloud Returns 408 Error

TLDR Rushil had issues updating a schema on Typesense Cloud, receiving a 408 error. Jason assisted, indicating that his cluster upgrade caused the issue, solved it, and advised to avoid similar changes in the future.

Powered by Struct AI

3

Jul 26, 2023 (4 months ago)
Rushil
Photo of md5-153deb374053266af0ef241c0c4ac510
Rushil
12:17 AM
I am trying to update a collection schema on Typesense cloud and keep getting a 408 error with an empty body. Any ideas what might be happening? Here is my update schema:

{
  "fields": [
    {
      "name": "geoloc",
      "drop": true
    },
    {
      "name": "_geoloc",
      "type": "geopoint[]",
      "optional": true
    }
  ]
}
12:18
Rushil
12:18 AM
It seems that our cluster got updated to 0.25.0.rc55 in the interim - not sure if that is causing problems
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
12:25 AM
Rushil I sent you an email with more context about the upgrade, about an hour ago.

We do not upgrade Typesense versions, except when a cluster runs into a bug that could be fixed by a more recent RC build.

This particular schema change payload caused an issue in 0.24.1 and so we upgraded your cluster to 0.25.0.rc55, which stabilized the cluster, but it looks like another variation of this issue still exists in this RC build as well.

We’ll take a closer look into this shortly.

1

12:26
Jason
12:26 AM
We’ll recover your cluster manually for now… in the meantime, I’d recommend avoiding doing this schema change. And instead creating a new collection with the updated schema and reindex your data in it
12:26
Jason
12:26 AM
I’ll keep you posted on the patch for the root cause of the issue

1

Rushil
Photo of md5-153deb374053266af0ef241c0c4ac510
Rushil
12:28 AM
Jason I actually tried deleting the collection, but that timed out as well. I ended up trying to reprovision with more RAM
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
12:28 AM
Looks like the cluster is in a state that prevents any API actions
12:29
Jason
12:29 AM
Should be back up in about 5 mins, and you should be able to increase RAM on the same cluster
12:36
Jason
12:36 AM
The cluster is stable now… The upgrade is going through now
Rushil
Photo of md5-153deb374053266af0ef241c0c4ac510
Rushil
12:38 AM
Attempting to delete the collection now
12:39
Rushil
12:39 AM
Sweet! That seemed to go through

1

Typesense

Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI

Indexed 3015 threads (79% resolved)

Join Our Community