Skip to content

Commit

Permalink
Address PR Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexs-mparticle committed Dec 13, 2024
1 parent 39d6fe4 commit 7c855c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/identityApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ export default function IdentityAPIClient(
// response.json will always exist on a fetch, but can only be
// await-ed when the response is not empty, otherwise it will
// throw an error.
aliasResponseBody = await response.json();
try {
aliasResponseBody = await response.json();
} catch (e) {
verbose('No response body for Alias request');
}
} else {
// https://go.mparticle.com/work/SQDSDKS-6568
// XHRUploader returns the response as a string that we need to parse
Expand Down

0 comments on commit 7c855c5

Please sign in to comment.