Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError undefined is not an object (evaluating 'lr.api.pushEvent') #615

Open
babaykaDev opened this issue Jun 17, 2024 · 0 comments
Open
Labels
bug Report a bug

Comments

@babaykaDev
Copy link

Description

I am using the Grafana Faro Web Tracing library for tracing activity on my site. The script is loaded from https://unpkg.com/@grafana/[email protected]/dist/bundle/faro-web-tracing.iife.js. Additionally, I use Sentry for error tracking in my project. Sentry regularly reports the following error for iOS devices, mostly on iOS 17.5:

undefined is not an object (evaluating 'lr.api.pushEvent')

The context from Sentry is provided in the attached JSON file: data.json.

Steps to Reproduce

  1. Use a device with iOS 17.5.1.
  2. Open Mobile Safari 17.5.
  3. Navigate to any page that includes the Grafana Faro Web Tracing script from this URL.

Expected Behavior

The application should function normally without any JavaScript errors.

Actual Behavior

A TypeError appears in the console:

undefined is not an object (evaluating 'lr.api.pushEvent')

Environment

  • @grafana/faro-web-sdk: v1.7.3
  • PHP: 8.2.0
  • Laravel: 10
  • OS: iOS 17.5.1
  • Browser: Safari 17.5
  • Device: iPhone, iPad, Mac (macOS >= 10.15.7)

Demo

image

Context

Detailed error context and logs can be found in the attached JSON file: data.json.

@babaykaDev babaykaDev added the bug Report a bug label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report a bug
Projects
None yet
Development

No branches or pull requests

1 participant