bug: Uncaught (in promise) TypeError: request.clone is not a function
Describe your issue?
With the Requestly chrome extension enabled, the follow website fails to load:
https://cubari.moe/read/gist/JYHJU/001/1/
The console contains the following logs:
Uncaught (in promise) TypeError: request.clone is not a function
at fetch (:455:58)
at ReaderAPI.requestSeries (init.js?v=2aac8e8:12:54)
at LoadHandler.onload (init.js?v=2aac8e8:7:46)
at HTMLDocument. (init.js?v=2aac8e8:8:54)
fetch @ VM4367:455
ReaderAPI.requestSeries @ init.js?v=2aac8e8:12
LoadHandler.onload @ init.js?v=2aac8e8:7
(anonymous) @ init.js?v=2aac8e8:8
Promise.then (async)
LoadHandler.onload @ init.js?v=2aac8e8:7
(anonymous) @ init.js?v=2aac8e8:8
VM4367:388
undefined https://cubari.moe/read/gist/JYHJU/001/1/undefined 400 (Bad Request)
XMLHttpRequest.send @ VM4367:388
(anonymous) @ alg_lib.js?v=2aac8e8:76
Request @ alg_lib.js?v=2aac8e8:70
fetch @ VM4367:410
ReaderAPI.requestSeries @ init.js?v=2aac8e8:12
LoadHandler.onload @ init.js?v=2aac8e8:7
(anonymous) @ init.js?v=2aac8e8:8
VM4389:1 Uncaught SyntaxError: Unexpected token '<', "
at JSON.parse ()
at xhr.onload (alg_lib.js?v=2aac8e8:73:13)
The errors go away when the plugin is disabled via Chrome.
Even if Requestly is paused and no rules exist, the issue occurs.
Repro steps
- Install and enable the Request app
- Visit website: https://cubari.moe/read/gist/JYHJU/001/1/
- Page will fail to load and errors are in the console.
What Requestly tool were you using?
- [X] Extension
- [ ] Desktop-App
- [ ] Android SDK
- [ ] Selenium
Your Environment
Windows 10, Chrome Version 120.0.6099.111 (Official Build) (64-bit)
Requestly Version
23.12.12
Error screenshot
@mobeigi Thanks for reporting this issue. We are investigating this and will try to fix this as soon as possible.
This looks like a bug on https://cubari.moe/. The Request object is overridden by a page script which is the cause of this error.
@nafees87n Are you able to reproduce the error or bug with Requestly disabled? I am only able to produce the error with the Requestly extension on.
So whatever Requestly is trying to do is interfering with what the website is doing.
Also I'm not sure what alg_lib is, where its from and what its purpose is.
Yeah. Requestly uses the Request object in page script. We will try to fix it in the next release so that Requestly does not block the website.
@mobeigi Can you please confirm if you still get this error in the latest Requestly version 24.7.7?
@mobeigi Can you please confirm if you still get this error in the latest Requestly version
24.7.7?
Yeah, still getting same issue with 24.7.7.