Schema Config Issue With Typesense Hosted on Render
TLDR Matthias had issues with a schema config on Typesense hosted on Render. Joshua helped troubleshoot, and Matthias resolved the issue by using the external URL.
1
Oct 11, 2021 (25 months ago)
Matthias
03:21 PM{
"name": "content-schemas",
"fields": [
{
"name": "typesenseSchema",
"type": "string",
"facet": false,
"index": true,
"optional": false
},
{
"name": "schema",
"type": "string",
"facet": false,
"index": true,
"optional": false
}
]
}
I'm getting an 404 (
Request failed with HTTP code 404
) error but I can't seem to figure out whats wrong here. Thanks in advance!Joshua
03:46 PMJoshua
03:46 PMMatthias
03:47 PM let schema: CollectionCreateSchema = {
name: collectionName,
fields: [
{
name: 'typesenseSchema',
type: 'string',
facet: false,
index: true,
optional: false,
},
{
name: 'schema',
type: 'string',
facet: false,
index: true,
optional: false,
},
],
};
try {
await typesense.collections().create(schema);
console.log('SETUP: Collection ' + collectionName + ' was created.');
} catch (error) {
console.log('SETUP: Error while creating schema collection. Error:', error);
}
Matthias
03:48 PMtypesense
is a Typesense.Client({...})Joshua
03:49 PMJoshua
03:49 PMJoshua
03:49 PMcurl ""
Matthias
03:50 PMMatthias
03:50 PMJoshua
03:51 PMis this using typesense's cloud or your own hosted version somewhere else?
Matthias
03:52 PMJoshua
03:55 PMMatthias
03:56 PMJoshua
03:57 PMJoshua
03:58 PMMatthias
03:58 PMMatthias
03:58 PMJoshua
03:58 PMJoshua
03:58 PMMatthias
03:59 PMMatthias
03:59 PMMatthias
04:00 PM1
Matthias
04:19 PMJoshua
04:30 PMTypesense
Indexed 2786 threads (79% resolved)
Similar Threads
Troubleshooting Typesense Connection Issue and Data Retrieval
Felix encountered issues connecting to a server-created typesense and retrieving data collections. Kishore Nallan and Jason provided guidance, highlighting errors in the original code and suggesting changes to the URL and curl command.
Fixing "bad json" error in Typesense 0.24
Adam experiences "bad json" error when creating collections in Typesense 0.24. Jason identifies a typo in the docs causing the error and helps troubleshoot additional errors.
Resolving Typesense Server Connection with Correct API Keys and Paths
Rubai had trouble creating a working API key for Typesense and understanding number_hits versus num_documents. Jason provided clarification and correct code for generating a search-only API Key and using correct server configurations.
Typesense Server Bulk Import/Upsert Issue Resolved
Adam was confused about the discrepancy between the successful responses and the actual indexed data while working with a custom WP plugin integrating with Typesense. The issue was a bug related to fetching documents in the wrong order, not a Typesense problem.
Issue with Typesense Schema and Ruby Client
Mateo faces issues while creating a schema and using Ruby client for Typesense. Jason suggests using a new field instead of 'id' and provides assistance for Ruby client errors.