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

Failed to execute 'clone' on 'Request': Request body is already used #3343

Closed
8 of 9 tasks
JackMauro opened this issue Aug 14, 2024 · 2 comments
Closed
8 of 9 tasks
Labels
invalid not a uBlock issue

Comments

@JackMauro
Copy link

JackMauro commented Aug 14, 2024

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • This is NOT a YouTube, Facebook or Twitch report. These sites MUST be reported by clicking their respective links.
  • This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • uBO uses default lists and settings.
  • using a new, unmodified browser profile.

Description

I don't know if this is a youtube filter issue or uBlock itself issue.

Watching youtube videos, the logger window show a lot of these errors:


[www.youtube.com][json-prune-fetch-response ⁝ reelWatchSequenceResponse.entries.[-].command.reelWatchEndpoint.adClientParams.isAd entries.[-].command.reelWatchEndpoint.adClientParams.isAd ⁝ ] Error: TypeError: Failed to execute 'clone' on 'Request': Request body is already used

[www.youtube.com][json-prune-fetch-response ⁝ playerAds adPlacements adSlots playerResponse.playerAds playerResponse.adPlacements playerResponse.adSlots [].playerResponse.adPlacements [].playerResponse.playerAds [].playerResponse.adSlots ⁝ ] Error: TypeError: Failed to execute 'clone' on 'Request': Request body is already used

[www.youtube.com][json-prune-fetch-response ⁝ playerAds adPlacements adSlots playerResponse.playerAds playerResponse.adPlacements playerResponse.adSlots ⁝ ] Error: TypeError: Failed to execute 'clone' on 'Request': Request body is already used

[www.youtube.com][replace-fetch-response ⁝ /"adSlots.*?}}],"adBreakHeartbeatParams/ ⁝ "adBreakHeartbeatParams ⁝ player?] TypeError: Failed to execute 'clone' on 'Request': Request body is already used

[www.youtube.com][replace-fetch-response ⁝ /"adPlacements.*?([A-Z]"}|"}{2,4})}],/ ⁝ ⁝ player?] TypeError: Failed to execute 'clone' on 'Request': Request body is already used

A specific URL where the issue occurs.

https://www.youtube.com/watch?v=R-aRpWUNILg

Steps to Reproduce

1: create new profile
2: installa ublock origin with default lists selected
3: open logger window
4: visit the page

Expected behavior

no errors

Actual behavior

errors displayed

uBO version

1.59

Browser name and version

Ungoogled Chromium 109

Operating System and version

Windows 7

@garry-ut99
Copy link

garry-ut99 commented Aug 14, 2024

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.
    I don't know if this is a youtube filter issue or uBlock itself issue.
    [www.youtube.com][json-prune-fetch-response
    [www.youtube.com][replace-fetch-response

What you pasted from Logger are entries related to uBlock filters/scriptlets, see documentation:

In such cases, it's a filter issue, and it should be always reported and asked in filters tracker:

In case it will turn out to be a bug in uBlock, filter maintentainers will move the issue here, so it's not a problem.

@gorhill
Copy link
Member

gorhill commented Aug 14, 2024

Expected behavior
no errors

Why? Errors in scriptlets are not unexpected, the logger merely reports them.

@gorhill gorhill closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2024
@gorhill gorhill added the invalid not a uBlock issue label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid not a uBlock issue
Projects
None yet
Development

No branches or pull requests

3 participants