visa_rescheduler
visa_rescheduler copied to clipboard
Need help on Break the loop after exception issue.
Need you help on this error. I am always getting this error when i started the program. break the loop after 1 try.
I am using Saroosh file.
Please help how to fix this. Program keep on closing after first try.
I think your start day is after the end date which is causing the error. Your start date is 2024-09-19 Your end date is 2024-01-31.
@ggzica I already changed that but I got the same issue.
I have managed to fixed the first issue but experiencing again on rescheduling part. Hope someone can help me on this.
Hi guys, Having the same issue as the above Basically, when the date is found successfully and the script tries to reschedule I get the "Break the loop after exception" error. Any ideas?
I think the DOM change and throw an exception because there are some things than does not exist anymore
@calderonsin do you have any resolution?
I think the DOM change and throw an exception because there are some things than does not exist anymore
Indeed, that's the case, in order to solve this issue remove the UTF8 line from the code and the script will be able to book an appointment.
I've forked this repo and working on a way to automatically detect the end date, and to automatically set the date as now() +2 and put the whole script in a loop, so it keeps early dates (Ex: My appointment date 2025-10-10 , first loop detects that there is an appointment at 2024-10-10 and books it, now my appointment date is 2024-10-10, script will try to get a date before that also and on repeat).
@ggzica Hi, do u posted your forked repo? I am also working on changes because in my country you need to schedule 2 appointments, one for embassy interview and one for biometrics. And you cannot schedule biometric without previous schedule embassy interview. ¿In your country is just one appointment?
@ggzica Hi, do u posted your forked repo? I am also working on changes because in my country you need to schedule 2 appointments, one for embassy interview and one for biometrics. And you cannot schedule biometric without previous schedule embassy interview. ¿In your country is just one appointment?
Not yet, once it's finalized and without bugs i will finalize it. And I think it's just one appoinment is needed in my country.
@ggzica okey, thanks for helping man I will soon share mine too.
I have managed to fixed the first issue but experiencing again on rescheduling part. Hope someone can help me on this.
I’m able to book but stuck at break the loop exception. Sometimes it works but mostly it throws the exception, please let me know how did you manage to solve break the loop problem.
booking problem is solved for me after deleting the line mentioned upwards.
I think the DOM change and throw an exception because there are some things than does not exist anymore
Indeed, that's the case, in order to solve this issue remove the UTF8 line from the code and the script will be able to book an appointment.
I've forked this repo and working on a way to automatically detect the end date, and to automatically set the date as now() +2 and put the whole script in a loop, so it keeps early dates (Ex: My appointment date 2025-10-10 , first loop detects that there is an appointment at 2024-10-10 and books it, now my appointment date is 2024-10-10, script will try to get a date before that also and on repeat).
@ggzica Were you able to implement the solution the way you described here?
The error is at this line - TypeError : 'float' object cannot be interpreted as an integer
Changed it to this and it works for me.
RETRY_WAIT_TIME = random.randint(int(RETRY_TIME_L_BOUND), int(RETRY_TIME_U_BOUND))
I have managed to fixed the first issue but experiencing again on rescheduling part. Hope someone can help me on this.
Can you explain how did you fix the first issue?