Comments (4)
In your gist example, payload data passed to the request does not match the required format. You can see info about the use of /bulk
here: https://manual.manticoresearch.com/dev/Data_creation_and_modification/Adding_documents_to_a_table/Adding_documents_to_a_real-time_table#Bulk-adding-documents
from manticoresearch.
I've updated the bug script, forget the gist.
Heres a screenshot that shows the bug when executing the script and ngreping the API port:
from manticoresearch.
Hi,
It appears the request from the updated script still has a few errors:
- the
PAYLOAD
data you encode already has encoded unicode sequences which leads to double encoding and an error when Manticore tries to decode it, so the request needs unicode-decoding as well (something likePAYLOAD.encode('utf-8').decode('unicode-escape')
should help) - the data contains
null
values, unvalid in the JSON schema - some fields are undefined in your table schema, but present in the data, e.g.,
sentiment
- the
feeds
field is defined asmulti64
, butstring
values are passed for it in the data which is not allowed in Manticore - the
id
field passed twice for each data row, as a separate field and as a field in thedoc
object, which cannot be correctly handled by Manticore (also, take note that the document id must be a number, not a string)
Can you please fix them and repeat your tests?
from manticoresearch.
Im into it, anyway, if the payload contains such errors (wich are definetly not supposed to be there) shouldn't manticore respond only one time with the corresponding 400 / 500 Response code?
I mean, the issue in the MRE is still on our side, but seems odd that the API responds 200 - OK to python requests, that could (an did, in my case) lead to silent errors and unexpected missing data.
Im still convinced that the issue has something to do with the unicode chars. I will solve all issues except for that one in a specific test and then i will test it again with the payload encoded in utf8 and show you both results.
Sorry for the issues with the MRE.
Thanks for your time.
from manticoresearch.
Related Issues (20)
- It is not possible to insert into a replicated table using the es api _bulk HOT 1
- tests in columnar got broken HOT 1
- CLT tests for Vector.dev and Fluentbit
- Convert Sphinx 3.3.1 Config to Latest Manticore Package with Plaintext Feature and Performance Optimization
- About the failure of using logstash to synchronize mysql data to manticore HOT 3
- performance degradation with wildcard queries with many matches when disk_chunks > 1 HOT 11
- Разные названия типа поля в PQ таблице: multi - mva (multi64 - mva64 ) HOT 2
- Allow set columnar_no_fast_fetch option for RT table creation
- Auto-bootstrapping an all-down cluster HOT 2
- The command parser does not return an error for infix wrong string when creating a table. HOT 3
- Conversational Search (RAG) HOT 1
- String equal in JOIN HOT 5
- Update deps action is not working when it's called from the main branch HOT 1
- Crash with signal 11 when executing alter table command
- The parameter expansion_limit cannot be added to a real-time type table.
- Unable to kill default searchd HOT 6
- Freeze while inserting huge texts HOT 5
- Unable to update text field HOT 1
- Setting doc id inside 'doc' fails /bulk insert HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manticoresearch.