I am trying to get data using requests.get()
. And the response data is large(containing 10000 mongodb records). But the response I get is almost always broken. Very few times I got the correct result.
Example:
Should be like this:
[
{
"_id":"5a72c839c634133e1e9ab502",
"data":{"today_wh":13500},
"dts":"2018-02-01T07:56:31.000Z",
"ts":1517471791
},
{
"_id":"5a72c839c634133e1e9ab503",
"data":{"today_wh":13500},
"dts":"2018-02-01T07:57:06.000Z",
"ts":1517471826
}
]
Comes like this:
[
{
"_id":"5a72c8ecc634133e1e9ab51b",
"data":{"today_wh":13700},
"dts":"2018-02-01T08:00:01.000Z",
"ts":1517472001
},
{
"_id":
What to do to get the whole result?