visa_rescheduler icon indicating copy to clipboard operation
visa_rescheduler copied to clipboard

Need help on Break the loop after exception issue.

Open etomak1228 opened this issue 1 year ago • 15 comments

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.

image

etomak1228 avatar Oct 16 '23 05:10 etomak1228

Please help how to fix this. Program keep on closing after first try.

image

etomak1228 avatar Oct 17 '23 10:10 etomak1228

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 avatar Oct 19 '23 12:10 ggzica

@ggzica I already changed that but I got the same issue.

image

etomak1228 avatar Oct 19 '23 13:10 etomak1228

I have managed to fixed the first issue but experiencing again on rescheduling part. Hope someone can help me on this.

image

etomak1228 avatar Oct 24 '23 02:10 etomak1228

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?

RandonNameS avatar Oct 26 '23 02:10 RandonNameS

I think the DOM change and throw an exception because there are some things than does not exist anymore

image

calderonsin avatar Oct 30 '23 02:10 calderonsin

@calderonsin do you have any resolution?

etomak1228 avatar Oct 30 '23 13:10 etomak1228

I think the DOM change and throw an exception because there are some things than does not exist anymore

image

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.

image

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 avatar Oct 30 '23 13:10 ggzica

@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?

calderonsin avatar Oct 30 '23 13:10 calderonsin

@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 avatar Oct 30 '23 14:10 ggzica

@ggzica okey, thanks for helping man I will soon share mine too.

calderonsin avatar Oct 30 '23 14:10 calderonsin

I have managed to fixed the first issue but experiencing again on rescheduling part. Hope someone can help me on this.

image

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.

KaranmaanCanada avatar Nov 10 '23 10:11 KaranmaanCanada

I think the DOM change and throw an exception because there are some things than does not exist anymore image

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.

image

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?

akeebatra avatar Dec 15 '23 01:12 akeebatra

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))

KoC-Stww avatar Jan 16 '24 06:01 KoC-Stww

I have managed to fixed the first issue but experiencing again on rescheduling part. Hope someone can help me on this.

image

Can you explain how did you fix the first issue?

EpiphoneLP avatar Jun 17 '24 08:06 EpiphoneLP