sling-connector issueshttps://gitlab.entropy.cc/entropy/sling-connector/-/issues2021-01-25T14:12:58Zhttps://gitlab.entropy.cc/entropy/sling-connector/-/issues/15Remove redundant JSON.parse / JSON.stringify call2021-01-25T14:12:58ZCaleb WeeksRemove redundant JSON.parse / JSON.stringify callWhen the HTTP calls were switched to Axios vs request, a number of redundant JSON.parse / JSON.stringify calls were introduced. Mostly likely because Axios is pre-parsing the JSON whereas that needed to be explicitly done before. The is ...When the HTTP calls were switched to Axios vs request, a number of redundant JSON.parse / JSON.stringify calls were introduced. Mostly likely because Axios is pre-parsing the JSON whereas that needed to be explicitly done before. The is most apparent in the `.post` and `.slingql` functions, because of how the responses are normalized, but there are improvements that could be made in the `get` calls as well, primarily if the `dontParse` options is provided. That will require tapping into the `transformResponse` option for the Axios instance. A POC of a number of these improvements was put together here: https://git.workbench.fourseasons.com/developers/fs-secure/legacy/-/merge_requests/156/diffs#note_49763 .https://gitlab.entropy.cc/entropy/sling-connector/-/issues/13Add axios-retry library2021-03-01T11:28:48ZCaleb WeeksAdd axios-retry libraryImplement the axios-retry library. https://github.com/softonic/axios-retry
This will simplify implementation in envs where socket connections are unreliable.Implement the axios-retry library. https://github.com/softonic/axios-retry
This will simplify implementation in envs where socket connections are unreliable.