-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error when running a script continously #26
Comments
Hi @Hazkarax, In your code, you are currently not really using the session object you create. This would have to be passed through the In my experience, the easiest way to keep an application running for a long time (in my case nearly 2 years without a CAPTCHA test) is by limiting the number of logins to a minimum. I've updated the README.md and added instructions how to use two new calls to ensure that a session is kept alive. Essentially, you need to call In my case, this allowed me to use the same session over many months. |
Hi @jgriss! Have you had any chance to look at this? Is there something wrong from my side based on my previous reply? |
I am trying to continuously run a script to provide live production data of a solar plant, which is to be displayed on a raspberry which will run continuously. After approximately 20-30 minutes, its stops updating, which I assume is due to the API returning a captcha.
I have tried to resolve this error both by re-using the session and by using captcha. However, the captcha ad-on cannot be installed as pip can not find any matching packages. Running the code with the captcha config therefore returns an error after 20 minutes when the captcha is needed.
I do not quite understand how to re-use the session either, as it gives an error when it tries to read a json. How does a full implementation of a session re-use look like?
The code in which I am trying to implement the following looks like this. Adding the recaptcha to the client gives an error after 20 minutes when a verification is requested, and the implementations I have tried of a session re-use have provided an error when reading the json.
The text was updated successfully, but these errors were encountered: