ampproject / ampproject/error-reporting
🚨 Error: Initial replaceState failed: Failed to execute 'replaceState' on 'History': A history state object with URL 'about:srcdoc' cannot be created in a document with origin 'http://adviewer.adcint.net:7000' and URL 'about:srcdoc'.
- 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/CO7K9dOA0prupgE)
**First seen:** Feb 15, 2022
**Frequency:** ~ 110,865/day
Stacktrace
---
Error: Initial replaceState failed: Failed to execute 'replaceState' on 'History': A history state object with URL 'about:srcdoc' cannot be created in a document with origin 'http://adviewer.adcint.net:7000' and URL 'about:srcdoc'.
at src/core/error/index.js:43:12
at apply (src/utils/log.js:295:44)
at apply (src/utils/log.js:271:37)
at error (src/service/history-impl.js:460:12)
at src/service-helpers.js:350:12
at getServiceInternal (src/service-helpers.js:141:9)
at getService (src/service/history-impl.js:1127:14)
at src/service-helpers.js:350:12
at getServiceInternal (src/service-helpers.js:206:9)
at getServiceForDoc (src/service/index.js:321:6)
Notes
---
`@rcebulko` modified `src/core/error/index.js:32-50` in [#33881](https://github.com/ampproject/amphtml/pull/33881) (Apr 16, 2021)
`@rcebulko` modified `src/utils/log.js:295-295` in [#35621](https://github.com/ampproject/amphtml/pull/35621) (Aug 11, 2021)
`@rcebulko` modified `src/utils/log.js:271-271` in [#35621](https://github.com/ampproject/amphtml/pull/35621) (Aug 11, 2021)
`@jridgewell` modified `src/service/history-impl.js:460-460` in [#4261](https://github.com/ampproject/amphtml/pull/4261) (Aug 3, 2016)
`@kmh287` modified `src/service-helpers.js:350-350` in [#9212](https://github.com/ampproject/amphtml/pull/9212) (May 15, 2017)
`William Chou` modified `src/service-helpers.js:134-143` in [#10131](https://github.com/ampproject/amphtml/pull/10131) (Jun 28, 2017)
`@kmh287` modified `src/service/history-impl.js:1127-1127` in [#7885](https://github.com/ampproject/amphtml/pull/7885) (Apr 7, 2017)
`@kmh287` modified `src/service-helpers.js:350-350` in [#9212](https://github.com/ampproject/amphtml/pull/9212) (May 15, 2017)
`William Chou` modified `src/service-helpers.js:199-208` in [#16328](https://github.com/ampproject/amphtml/pull/16328) (Jun 29, 2018)
`@renovate-bot` modified `src/service/index.js:320-322` in [#34288](https://github.com/ampproject/amphtml/pull/34288) (May 11, 2021)
**Seen in:**
- 04-22 Stable (1712)
- 04-29 Beta (2129)
- 05-04 Nightly (1533)
**Possible assignees:** `@rcebulko`, `@kmh287`
/cc @ampproject/release-on-duty
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with src/service/history-impl.js around line 460 and follow the stack through src/service-helpers.js and src/service/index.js. Use the linked production error report and the about:srcdoc replaceState message to investigate the failure. Done means the cause is confirmed and the issue has a verified fix or reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100