Skip to content

Commit

Permalink
[Main][BUG] Beacon sender reports error for success when diagnostics …
Browse files Browse the repository at this point in the history
…are enabled #2204 (#2212)
  • Loading branch information
MSNev committed Dec 7, 2023
1 parent 71a33e8 commit 1859bc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion channels/applicationinsights-channel-js/src/Sender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,8 +708,9 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControls {
//TODO: handle other status codes
if (status === 200 && payload) {
_self._onSuccess(payload, payload.length);
} else {
response && _self._onError(payload, response);
}
response && _self._onError(payload, response);
}

function _doSend(sendInterface: IXHROverride, payload: string[], isAsync: boolean, markAsSent: boolean = true): void | IPromise<boolean> {
Expand Down

0 comments on commit 1859bc1

Please sign in to comment.