question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Query for huge result truncates the data

See original GitHub issue
from elasticsearch import Elasticsearch
from elasticsearch_dsl import Search

s = Search(using=self.es, index=index, doc_type=doc_type)
s = s.query(self.queryParser(query))
res = s.execute()
for h in res.hits.hits:
    ...
JSONDecodeError("Expecting ',' delimiter or '}': line 1 column 524050 (char 524049)",))
pip3 list | grep elastic
elasticsearch                          6.1.1
elasticsearch-dsl                      6.1.0

It works with curl doing the same query

curl --cacert ca.crt --cert client-dev.crt --key client-dev.key -XGET https://hostname:9200/index/_search/ -d '{"query": {"bool": {"must": [{"query_string": {"query": " *"}}]}}, "from": 0, "size": 999}' -H "Content-Type: application/json" | jq ".hits.hits | length"
999

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fxdgearcommented, Jun 18, 2018

Sorry I was on holiday for the last 2 weeks. I’m back to work today and catching up on emails. I’ll address this and all other issues/PR’s asap 😃

thanks

0reactions
tivvitcommented, Jun 29, 2018

Confirmed, the issue was caused by the Nginx (a difference between header content-length and actual content length). Thanks a lot for the help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Silent Data truncation in SQL Server 2019 - SQLShack
In this article, we'll take a look into SQL truncate improvement in SQL Server 2019. Data inserts and updates are a normal and...
Read more >
Prevent Truncation of SQL Server Management Studio Results
In the Options dialog box of Tools Menu, expand Query Results, expand SQL Server and then select Results to Text as shown in...
Read more >
SQL Server truncation and 8192 limitation - Stack Overflow
Yet, In Management Studio I have under Tools --> Options --> Query Results --> Results to Text --> Max numbers of characters displayed...
Read more >
Step-by-Step Guide to Perform Truncate in SQL - Simplilearn
The truncate query is used to remove the record from the tables. In some situations, the truncate query cannot change data records. Following ......
Read more >
SSMS truncating the result text in the select query - MSDN
Hello,. The value of one of the columns in my table is 14000 lines(678913 characters). The datatype of that column is varchar(MAX). I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found