Additional context
This problem has been reported on Slack a few times and about 6mo ago was not occurring. If you would like a program that reproduces this, try running "Jack.java" at https://github.com/clickingbuttons/polyquest and look for errors on stdout like bad JSON from .... If you would like an exhaustive list of URLs this has occurred for me on, I have logs for about 200 occurenences.
URL Calling https://api.polygon.io/v2/aggs/ticker/GGE/range/1/day/2004-02-05/2020-02-03 at 200 times per second for 36k calls gives incorrect results for between 2-100 calls. When incorrect results are returned sometimes it's in spurts, which leads me to believe this is a caching issue.
Result The first results[0] is:
The rest of the results are correct.
Expected Result I expect the first results[0] to be:
Additional context This problem has been reported on Slack a few times and about 6mo ago was not occurring. If you would like a program that reproduces this, try running "Jack.java" at https://github.com/clickingbuttons/polyquest and look for errors on stdout like
bad JSON from ...
. If you would like an exhaustive list of URLs this has occurred for me on, I have logs for about 200 occurenences.