Problem with Update Query using Typesense NPM Package
TLDR SGM encountered an error with an update query using typesense npm package. Jason confirmed the issue was resolved in version v01.7.2
.
Oct 13, 2023 (1 month ago)
SGM
07:56 PMI'm using the typesense npm package and following the documentation, but I get an error:
RequestMalformed: Request failed with HTTP code 400 | Server said: For update, the id key must be provided.
This is probably because the documentation species to use .documents() without anything in the parenthesis....Did I misunderstand this?
Jason
10:40 PMv01.7.2
of typesense-jsTypesense
Indexed 3011 threads (79% resolved)
Similar Threads
Troubleshooting Typesense Document Update Error
Mehdi had an issue with updating Typesense documents which returned a '404 Not Found' error. Kishore Nallan after several debugging steps, discovered Mehdi was using an outdated Typesense version. The issue was resolved after upgrading Typesense.
Fixing Corrupted Documents and Upgrading Typesense Cloud Version
gab had issues with corrupted documents in Typesense Cloud. Jason suggested upgrading to version 0.24.1.rc, which resolved the issue. They also discussed CORS domain management.
Adding and Updating Collections in Typesense Server
sonu asked about methods to add and update collections in a Typesense server. Jason advised that documents can be added individually or in bulk, and updates can be batched using the import function, even with a small React app with a MySQL database.