requestly icon indicating copy to clipboard operation
requestly copied to clipboard

bug: Uncaught (in promise) TypeError: request.clone is not a function

Open mobeigi opened this issue 2 years ago • 6 comments

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

  1. Install and enable the Request app
  2. Visit website: https://cubari.moe/read/gist/JYHJU/001/1/
  3. 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

image

mobeigi avatar Dec 23 '23 10:12 mobeigi

@mobeigi Thanks for reporting this issue. We are investigating this and will try to fix this as soon as possible.

nafees87n avatar Dec 26 '23 17:12 nafees87n

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. Screenshot 2024-01-02 at 12 04 53 PM

nafees87n avatar Jan 02 '24 06:01 nafees87n

@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.

mobeigi avatar Jan 02 '24 07:01 mobeigi

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.

nafees87n avatar Jan 02 '24 07:01 nafees87n

@mobeigi Can you please confirm if you still get this error in the latest Requestly version 24.7.7?

nafees87n avatar Jul 15 '24 14:07 nafees87n

@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.

image

mobeigi avatar Jul 15 '24 21:07 mobeigi