-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid character 'p' after top-level value, #5187
Comments
what's happend ,by language limitation? |
Hey @timgogochen : I'm unable to reproduce the issue you mentioned above in Weaviate v1.25.4 which is the latest version available. I have used the below script. Please take a look and let me know if i am missing anything. I am not sure what you are trying to achieve as I don't know the language. Do you know the python client version you are using to interact with Weaviate Database?
And here is the output: You will notice, there is no error when inserting the objects. |
I have also tried the below code and that works as well...
The output with no errors:
|
How to reproduce this bug?
Hi Supporter,
according executing below code block to insert vector data into database:
'''
'''
return bellow informaton :
DataObject(properties={'chapter_title': 'What is Git', 'chunk': '人力资源社会保障部规章 人力资源服务机构管理规定 (2023 年 6 月 29 日人力资源社会保障部令第 50 号公布 自 2023 年 8 月 1 日起施行) 第一条 为了加强对人力资源服务机构的管理,规范人力资 源服务活动,健全统一开放、竞争有序的人力资源市场体系,促 进高质量充分就业和优化人力资源流动配置,根据《中华人民共 和国就业促进法》《人力资源市场暂行条例》等法律、行政法规, 第二条 在中华人民共和国境内的人力资源服务机构从事 人力资源服务活动,适用本规定。 第三条 县级以上人力资源社会保障行政部门依法开展本 行政区域内的人力资源服务机构管理工作。 人力资源社会保障部发布 人力资源社会保障部规章 第四条 人力资源社会保障行政部门应当加强人力资源服 务标准化、信息化建设,指导人力资源服务行业协会加强行业自 第二章 行政许可和备案', 'chunk_index': 0}, uuid=None, vector=None, references=None)
Traceback (most recent call last):
File "/home/tim/agent/Utils/weaviate_importdata.py", line 118, in
Weaviate_vector_db.data.insert_many(chunks_list)
File "/home/tim/py310/lib/python3.11/site-packages/weaviate/collections/data.py", line 410, in insert_many
return self._batch_grpc.objects(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tim/py310/lib/python3.11/site-packages/weaviate/collections/batch/grpc_batch_objects.py", line 102, in objects
raise WeaviateInsertManyAllFailedError(
weaviate.exceptions.WeaviateInsertManyAllFailedError: Every object failed during insertion. Here is the set of all errors: unmarshal response body: invalid character 'p' after top-level value
sys:1: ResourceWarning: unclosed <socket.socket fd=3, family=2, type=1, proto=6, laddr=('127.0.0.1', 35016), raddr=('127.0.0.1', 8080)>
What is the expected behavior?
Import database success
What is the actual behavior?
DataObject(properties={'chapter_title': 'What is Git', 'chunk': '人力资源社会保障部规章 人力资源服务机构管理规定 (2023 年 6 月 29 日人力资源社会保障部令第 50 号公布 自 2023 年 8 月 1 日起施行) 第一条 为了加强对人力资源服务机构的管理,规范人力资 源服务活动,健全统一开放、竞争有序的人力资源市场体系,促 进高质量充分就业和优化人力资源流动配置,根据《中华人民共 和国就业促进法》《人力资源市场暂行条例》等法律、行政法规, 第二条 在中华人民共和国境内的人力资源服务机构从事 人力资源服务活动,适用本规定。 第三条 县级以上人力资源社会保障行政部门依法开展本 行政区域内的人力资源服务机构管理工作。 人力资源社会保障部发布 人力资源社会保障部规章 第四条 人力资源社会保障行政部门应当加强人力资源服 务标准化、信息化建设,指导人力资源服务行业协会加强行业自 第二章 行政许可和备案', 'chunk_index': 0}, uuid=None, vector=None, references=None)
Traceback (most recent call last):
File "/home/tim/agent/Utils/weaviate_importdata.py", line 118, in
Weaviate_vector_db.data.insert_many(chunks_list)
File "/home/tim/py310/lib/python3.11/site-packages/weaviate/collections/data.py", line 410, in insert_many
return self._batch_grpc.objects(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tim/py310/lib/python3.11/site-packages/weaviate/collections/batch/grpc_batch_objects.py", line 102, in objects
raise WeaviateInsertManyAllFailedError(
weaviate.exceptions.WeaviateInsertManyAllFailedError: Every object failed during insertion. Here is the set of all errors: unmarshal response body: invalid character 'p' after top-level value
sys:1: ResourceWarning: unclosed <socket.socket fd=3, family=2, type=1, proto=6, laddr=('127.0.0.1', 35016), raddr=('127.0.0.1', 8080)>
Supporting information
No response
Server Version
latest docker version
Code of Conduct
The text was updated successfully, but these errors were encountered: