-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
hi there,
i just tried to request some records from mongodb and saw some strange behavior, in my case I requested all records of a given table, in this case 429 records, after receiving them successfully I used res.json(200, videos) to output that object as a json.
it seems like my browser does not receive the full 429 records (look like twice the same output), therefor it is not valid json and cant be used for anything. while investigating this issue, i found out that limiting the number of results by using videos = videos.slice(0, 43); before sending the json solves that issue but limits the output.
including one more item of the videos array will break the json again… there is nothing wrong with next entry as videos = videos.slice(20, 60); is also working as well, displaying 45 elements will break it again.
i tried to output the same data using an older version of the generator (1.4.3) without any problems, all 429 records show as expected.
intresting tidbit: chrome, firefox and safari seem to render the json twice which makes it invalid,a simple curl http://localhost:9000/api/videos | subl does not show the json duplicated. I tried a second computer to be sure that its not my browser plugins messing with me.
btw… how can i figure out which version generator-angular-fullstack was used to create a project and is there a way to update an existing project?