-
Notifications
You must be signed in to change notification settings - Fork 12
False positive appointment if "termine" screen is too slow #30
Comments
I have a fix for this but I would need to get #29 resolved first. |
Bug is still not fixed! |
Hi @marcoklein, I really believe the logic is incorrect. This worked for me at least.. but testing this is really tricky these days. |
Okay, then I am reopening this issue. I thought the logic worked for me.. Maybe the website has changed? |
* Addapt logic for appointments If the system is slow the screen "Termine werden gesucht" will stay for a long time. This is currently detected as valid appointment. Adapt the logic which used OR instead of AND. Please note that I didn't had any successful hit so far. Closes #30 * feat: adjust logging message Co-authored-by: Marc Koderer <marc@koderer.com>
Thanks for your proposed change.. As you say it is hard to test - but looks better with the adjusted logic. I can't test it cause I got no code but I left the debug statements in place. Please let me know if this works now. |
Thanks - I hope someone could attach the debug log in case of a hit. |
With code the output looks like this: impftermin:zentrum Performing a check for location with url https://xxx-iz.impfterminservice.de/impftermine/service?plz=xxxxx +30s Die Impfzentren stellen regelmäßig neue Termine ein. Bitte prüfen Sie zu einem späteren Zeitpunkt mit Hilfe Ihres Vermittlungscodes, ob wieder Termine zur Verfügung stehen. +0ms |
With code but too slow web site and wrong assumption an appointment would be available: impftermin:appointments Checking impf location https://xxx-iz.impfterminservice.de/impftermine/service?plz=xxxxx +378ms The site stopped before the klick on the button "Termine suchen" |
Thanks @Whindu. Have you captured the HTML source by any chance? @marcoklein unfortunately I would suggest to open the issue again. |
No, only the log output. |
Sorry, there seems to be no reproducible cause (whether the browser window is "slow" or anything). It is very annoying to wake up in the middle of the night. |
The real annoying thing is that the impfterminservice is absolutely unusable and unreliable these days. I tried to debug it today but had no success. I think we need to add more logging to find the root cause. |
I currently see no effective way of avoiding false positives.. One way might be to check if the 'actual' appointments available page shows up. However, I do not have the HTML for this to implement the necessary steps. The risk with this is also that the impfterminservice.de site changes and you would get false negatives then (so you never get notified). From my experience the tool yields a couple of appointments (also with code) during the day - however, this highly depends on the locations you choose. I am leaving this open for further discussions but see no effective fix for now. |
@marcoklein what we could do is log the full html in case of appointmentText == undef. |
Yes that would be an option. I'll look into this if I find time but feel free to implement the log change. |
In case the Termine screen is still building up it if statement 1 wrongly matches.
Currently the system seems to be very slow. This is the reason this state could take some seconds:
The text was updated successfully, but these errors were encountered: