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

cleverbot() sometimes returns "<html" #5

Open
Quarlie opened this issue Jul 4, 2022 · 1 comment
Open

cleverbot() sometimes returns "<html" #5

Quarlie opened this issue Jul 4, 2022 · 1 comment

Comments

@Quarlie
Copy link

Quarlie commented Jul 4, 2022

Sometimes calling cleverbot() only returns "<html"

Expected Results:
A Response

Actual Results:

Code:

import cleverbotfreeapi

# Code

cleverbotfreeapi.cleverbot(message.content, session=message.author.id)


(Using the discord.py module,
message.content being a string of the user's input and message.author.id being the int id of the user)

@GuardianDead
Copy link

This is due to the fact that sometimes with large numbers of requests from one ip address, the site sends a 403 error from html documents in the form of an error for too many requests.

Unfortunately, this is not taken into account in this repository, so you should add proxies to each subsequent request in the form of a separate conversation.

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