discord-data-package-explorer icon indicating copy to clipboard operation
discord-data-package-explorer copied to clipboard

Captcha failed and being redirected when running locally

Open Infinitay opened this issue 3 years ago • 3 comments

I've been having issues attempting to use this tool as I couldn't load the page. Whenever I attempted to load the tool, I was met with a "Captcha failed" message. I tried it on different browsers, different Chrome profiles, and incognito, but nothing fixed the issue.

I attempted to load it locally thinking recaptcha wouldn't be loaded, but I was met with another issue. I was once again met with an issue, but this time the tools page would load and immediate redirect me to your hosted tool instead of mine hosted locally. Once again where I would fail the captcha for whatever reason.

I tried looking in the code to see where the Google's Recaptcha was being loaded and to stop it from loading, but I couldn't find it anywhere.

Solution

I realized that I was going about it wrong as there was no captcha being loaded at all as it was missing from the code after all. On top of that, I was being redirected to your hosted destination of the tool. Commenting out the following line allowed me to use the tool with no issue locally.

https://github.com/Androz2091/discord-data-package-explorer/blob/dbaef2b67f1877ad6ac443722b6869dcb8431451/src/App.svelte#L34

Other remarks

I still have no clue why I was failing the captcha when my friends weren't have an issue. I tested my recaptcha score and I was scoring a 0.9 which led me to more confusion on what was going on. Having issues locally didn't help either.

Infinitay avatar Jul 01 '21 10:07 Infinitay