Giter Site home page Giter Site logo

Comments (4)

Nick-S-2018 avatar Nick-S-2018 commented on July 23, 2024

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.

DiegoAlfa7 avatar DiegoAlfa7 commented on July 23, 2024

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:
image

from manticoresearch.

Nick-S-2018 avatar Nick-S-2018 commented on July 23, 2024

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 like PAYLOAD.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 as multi64, but string 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 the doc 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.

DiegoAlfa7 avatar DiegoAlfa7 commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.