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

add better error explanations #104

Open
iwa opened this issue Apr 26, 2024 · 3 comments
Open

add better error explanations #104

iwa opened this issue Apr 26, 2024 · 3 comments

Comments

@iwa
Copy link
Contributor

iwa commented Apr 26, 2024

lots of time when the bot returns an error, it can often be fixed by a relogin
couldn't you add some better errors messages so user aren't confused by whats happening?
more verbose error can't be something bad

@giorgi-o
Copy link
Owner

I agree, however the issue is that the error changes depending on what is causing the current session to not work, whether it's the Cloudflare firewall, the authentication, the shop server, etc.

Could you send me a screenshot of a console error that can be fixed by relogging? If so I can change that error to tell the user they have to /login again.

@iwa
Copy link
Contributor Author

iwa commented May 9, 2024

i think this would be the issue?

image

problem is i currently selfhost the bot on my homelab, so i don't get why we would get cf error?

edit: i don't normally get cloudflare captcha on my devices when home

@giorgi-o
Copy link
Owner

The way the Cloudflare firewall works isn't on/off, but it calculates a "score" based on many factors, to determine whether the username/password login is coming from an official riot client or not.

The IP address plays a part (whether it's an enterprise or home address, how many different accounts share that IP, etc) but also tons of other metrics like user-agent, TLS fingerprinting, even stuff like the timing of the response. There are world experts at Cloudflare whose entire job it is to maintain this algorithm btw.

SkinPeek tries its best to pretend to be the Rito launcher, but it's not 100%. And if Cloudflare detects you, there's not much I or anyone can do unfortunately, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants