JSONDecodeError Issue in Typesense Collection Creation with Python
TLDR Sai encountered a JSONDecodeError while creating a schema. Kishore Nallan tested the same setup but did not face any issues. Sai will check on their side and get back.
Mar 01, 2023 (7 months ago)
Sai
12:14 PMjson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
when calling typesense_client.collections.create(schema)
. This is a python code . The schema is{
'name': 'idi_v8',
'fields': [
{"name": ".*", "type": "auto"},
{'name': 'title', 'type': 'string', 'facet': True},
{'name': 'content_type', 'type': 'string', 'facet': True}
]
}
Kishore Nallan
12:39 PMKishore Nallan
12:43 PMjson.decoder.JSONDecodeError:
is Python-side error. What version of the Python client are you using?Sai
12:46 PM0.15.0
with typesense 0.22.1
Kishore Nallan
12:49 PMSai
12:50 PMKishore Nallan
12:50 PMSai
12:52 PMKishore Nallan
01:03 PMSai
01:17 PMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Issues Importing Data to TypeSense Python Client
Mehdi was having trouble importing data to a TypeSense Python client. Kishore Nallan released a new Python client version to fix Mehdi's encoding issues.
Typesense JSON Decoding Issues
Philip faced issues with JSON decoding errors when redeploying typesense. Jason suggested checking the Typesense logs and trying with curl, providing ways to diagnose the issue. Philip planned to investigate further.

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 "Bad JSON" Error during Typesense Collection Creation
Cassandra had an error creating a Typesense collection. Kishore Nallan resolved this by suggesting to input JSON data directly, not as a file.
Issues with Importing Typesense Collection to Different Server
Kevin had problems migrating a Typesense collection between Docusaurus sites on different machines. Jason advised them on JSONL format, handling server hosting, and creating a collection schema before importing documents, leading to successful import.


