diff --git a/app/fetch_preconfig.js b/app/fetch_preconfig.js index c3c8af3e7..510c71221 100644 --- a/app/fetch_preconfig.js +++ b/app/fetch_preconfig.js @@ -18,11 +18,15 @@ Client4.doFetchWithResponse = async (url, options) => { url, }; } - const response = await fetch(url, Client4.getOptions(options)); - const headers = response.headers; + + let response; + let headers; let data; try { + response = await fetch(url, Client4.getOptions(options)); + headers = response.headers; + data = await response.json(); } catch (err) { if (response && response.resp && response.resp.data && response.resp.data.includes('SSL certificate')) { diff --git a/package-lock.json b/package-lock.json index fbacbd451..bc777de91 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9878,8 +9878,8 @@ } }, "mattermost-redux": { - "version": "github:mattermost/mattermost-redux#c9b633da7fc3fc9ba3cc40ecc9665e088defbe73", - "from": "github:mattermost/mattermost-redux#c9b633da7fc3fc9ba3cc40ecc9665e088defbe73", + "version": "github:mattermost/mattermost-redux#d2e9ba4f30a7bdfccda9aab1cfa8124c4ca1f275", + "from": "github:mattermost/mattermost-redux#d2e9ba4f30a7bdfccda9aab1cfa8124c4ca1f275", "requires": { "deep-equal": "1.0.1", "eslint-plugin-header": "1.2.0", diff --git a/package.json b/package.json index 25b80372b..e67129764 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "intl": "1.2.5", "jail-monkey": "1.0.0", "jsc-android": "216113.0.3", - "mattermost-redux": "github:mattermost/mattermost-redux#c9b633da7fc3fc9ba3cc40ecc9665e088defbe73", + "mattermost-redux": "github:mattermost/mattermost-redux#d2e9ba4f30a7bdfccda9aab1cfa8124c4ca1f275", "mime-db": "1.33.0", "prop-types": "15.6.1", "react": "16.3.2",