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

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

Open
etomak1228 opened this issue Oct 16, 2023 · 15 comments
Open

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

etomak1228 opened this issue Oct 16, 2023 · 15 comments

Comments

@etomak1228
Copy link

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
Copy link
Author

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

image

@ggzica
Copy link

ggzica commented Oct 19, 2023

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
Copy link
Author

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

image

@etomak1228
Copy link
Author

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

image

@RandonNameS
Copy link

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
Copy link

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

image

@etomak1228
Copy link
Author

@calderonsin do you have any resolution?

@ggzica
Copy link

ggzica commented Oct 30, 2023

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
Copy link

calderonsin commented Oct 30, 2023

@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
Copy link

ggzica commented Oct 30, 2023

@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
Copy link

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

@KaranmaanCanada
Copy link

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
Copy link

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
Copy link

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
Copy link

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?

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

8 participants