uxDaniel / visa_rescheduler

US VISA (ais.usvisa-info.com) appointment re-scheduler - Colombian adaptation
276 stars 236 forks source link

Need help on Break the loop after exception issue. #65

Open etomak1228 opened 11 months ago

etomak1228 commented 11 months ago

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 commented 11 months ago

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

image

ggzica commented 10 months ago

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.

etomak1228 commented 10 months ago

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

image

etomak1228 commented 10 months ago

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

image

RandonNameS commented 10 months ago

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?

calderonsin commented 10 months ago

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

image

etomak1228 commented 10 months ago

@calderonsin do you have any resolution?

ggzica commented 10 months ago

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

calderonsin commented 10 months ago

@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 commented 10 months ago

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

calderonsin commented 10 months ago

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

KaranmaanCanada commented 10 months ago

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.

akeebatra commented 9 months ago

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?

KoC-Stww commented 8 months ago

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

EpiphoneLP commented 2 months ago

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?