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

Some users encountering issues with being periodically logged out of the AI Horde #205

Open
daveschumaker opened this issue Dec 12, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@daveschumaker
Copy link
Owner

I was talking about this on Discord and I suspect this is what is happening:

I suspect there is a race condition on my end. If I recall, when ArtBot pings to AI Horde API to check your user info with your API key, if it gets an invalid response (e.g., server timeout, server down, some sort of network hiccup), it just ends up logging you out by essentially erasing the stored API key.

The API endpoint ArtBot periodically pings to check user status is the same endpoint used when "logging in" to the AI Horde. If the endpoint returns a timeout, bad response, or some network condition happens, ArtBot assumes the login failed. The logic seems to incorrectly carry over to where we periodically ping the API for updated user stats.

@daveschumaker daveschumaker added the bug Something isn't working label Dec 12, 2023
@daveschumaker daveschumaker self-assigned this Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant