Skip to content
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 characters in MC break search API #10

Open
syxie opened this issue Sep 9, 2022 · 3 comments
Open

Invalid characters in MC break search API #10

syxie opened this issue Sep 9, 2022 · 3 comments

Comments

@syxie
Copy link

syxie commented Sep 9, 2022

Adding messages like this to MC seems to break the ability of the client to fetch them:
'msg': '[\x02L\u200bi\u200bl\u200bB\u200br\u200bu\u200bc\u200be\x02] sss'

Indexing with the client works fine:
{'error': None,
'items': [{'bulk': {'_id': 1370872170497990695,
'_index': 'main',
'created': 1,
'deleted': 0,
'result': 'created',
'status': 201,
'updated': 0}}]}

However, on search, these are the results:
{'took': None, 'timed_out': None, 'aggregations': None, 'hits': None, 'profile': None, 'warning': None}

In the server query log at the same time, I can see that this did in fact return results the client is not displaying.
/* Thu Sep 8 14:54:48.419 2022 conn 2 real 0.001 wall 0.002 found 73

Using requests seems to work:
response = requests.post(f"{settings.MANTICORE_URL}/json/search", json=search_query)
response = ujson.loads(response.text)

@sanikolaev
Copy link
Collaborator

Can you make an MRE similar to this one manticoresoftware/manticoresearch#863 (comment) ?

@syxie
Copy link
Author

syxie commented Sep 12, 2022

Ah, this issue seems to be a duplicate of that one, and by extension manticoresoftware/manticoresearch#857

@sanikolaev
Copy link
Collaborator

@syxie in that issue the problem is with \x0b. Can you find out what the problem is in this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants