ampproject / ampproject/error-reporting

🚨 Error: Failed to execute 'sendBeacon' on 'Navigator': Beacons are only supported over HTTP(S).

Open
#68 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Details
---
**Error report:** [link](http://go/ampe/CJ6v2LLM-YSBhAE)
**First seen:** Mar 11, 2021
**Frequency:** ~ 164/day

Stacktrace
---

Error: Failed to execute 'sendBeacon' on 'Navigator': Beacons are only supported over HTTP(S).

at WindowInterface (extensions/amp-analytics/0.1/transport.js:269:23)
at sendRequestUsingBeacon (extensions/amp-analytics/0.1/transport.js:118:16)
at sendRequest (extensions/amp-analytics/0.1/requests.js:282:24)

Notes
---
`@lannka` modified `extensions/amp-analytics/0.1/transport.js:269-270` in [#19102](https://github.com/ampproject/amphtml/pull/19102) (Nov 3, 2018)
`@rsimha` modified `extensions/amp-analytics/0.1/transport.js:116-119` in [#21212](https://github.com/ampproject/amphtml/pull/21212) (May 16, 2019)
`@jonathantyng-amp` modified `extensions/amp-analytics/0.1/requests.js:278-287` in [#22454](https://github.com/ampproject/amphtml/pull/22454) (Jun 21, 2019)

**Seen in:**
- 03-12 Nightly (2145)

**Possible assignees:** `@jonathantyng-amp`, `@lannka`

/cc @ampproject/release-on-duty

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting extensions/amp-analytics/0.1/transport.js around lines 116-119 and 269-270, then trace the request flow in extensions/amp-analytics/0.1/requests.js around lines 278-287. The issue provides the failing browser error and stack trace, but does not define the expected behavior or a named test, so confirm the intended handling for non-HTTP(S) contexts before determining what done means.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.