Open
Description
Expected Behavior
No AbortError
is thrown when using the Session Replay.
Looks similar to #957, but I cannot reopen that issue.
Current Behavior
Receiving thousands of AbortError
reports in monitoring platform (Sentry).
I've since reverted to turn off Session Replay, as it was becoming untenable with the volume of issues coming in.
Possible Solution
I don't know, unfortunately.
Steps to Reproduce
- Introduce
@amplitude/plugin-session-replay-browser
npm dependency in package.json - Add it to existing amplitude tracking in a React hook.
import * as amplitude from "@amplitude/analytics-browser";
+ import { sessionReplayPlugin } from "@amplitude/plugin-session-replay-browser";
import { useEffect } from "react";
const useAmplitude = () => {
useEffect(() => {
try {
if (<api_key>) {
+ const sessionReplayTracking = sessionReplayPlugin();
+ amplitude.add(sessionReplayTracking);
amplitude.init(<api_key>, undefined, { /* options omitted for brevity */ })
}
} catch (error) {
console.error("Error initialising Amplitude Analytics", error);
}
}, []);
};
export default useAmplitude;
Environment
- JS SDK Version:
- "@amplitude/plugin-session-replay-browser": "^1.16.13"
- "@amplitude/analytics-browser": "^2.11.11"
- Installation Method: NPM
- Browser and Version: Predominantly iOS with Mobile Safari, but also on macOS and in other browsers like Instagram, Facebook, Chrome