We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d6fe4 commit 7c855c5Copy full SHA for 7c855c5
src/identityApiClient.ts
@@ -134,7 +134,11 @@ export default function IdentityAPIClient(
134
// response.json will always exist on a fetch, but can only be
135
// await-ed when the response is not empty, otherwise it will
136
// throw an error.
137
- aliasResponseBody = await response.json();
+ try {
138
+ aliasResponseBody = await response.json();
139
+ } catch (e) {
140
+ verbose('No response body for Alias request');
141
+ }
142
} else {
143
// https://go.mparticle.com/work/SQDSDKS-6568
144
// XHRUploader returns the response as a string that we need to parse
0 commit comments