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

What is URL of the service you want to watch? Instructions out of date? #30

Open
oldManLemon opened this issue Jun 30, 2024 · 0 comments

Comments

@oldManLemon
Copy link

oldManLemon commented Jun 30, 2024

Running on Rocky 9 VM if it matters, ;

docker run -v $(pwd)/playwright-report:/home/pwuser/playwright-report -v $(pwd)/test-results:/home/pwuser/test-results --env-file myenv.env anmeldung-berlin

I get the following error.

Traceback (most recent call last):
  File "/usr/local/bin/appointments", line 7, in <module>
What is URL of the service you want to watch?
This is service.berlin.de page for the service you want an appointment for. For example, "https://service.berlin.de/dienstleistung/120686/"
>     exec(compile(f.read(), __file__, 'exec'))
  File "/var/appointments/bin/appointments", line 57, in <module>
    service_page_url = args.url or ask_question(
  File "/var/appointments/bin/appointments", line 21, in ask_question
    return input("> \033[0m")
EOFError: EOF when reading a line

More info

$ npm -v
8.19.4
$ node -v
v16.20.2

After some digging through some the files, I think if I understand correctly that I need to also pass BOOKING_TOOL_EMAIL and BOOKING_TOOL_URL.

Which I would have assumed came either as default APPOINTMENT_SERVICE="Anmeldung einer Wohnung" or by manually setting it.

Upon setting those two environment variables

I get

[2024-06-30 16:54:31] INFO: Getting appointment URL for "https://service.berlin.de/dienstleistung/120686/"
[2024-06-30 16:54:31] INFO: URL found: https://service.berlin.de/terminvereinbarung/termin/all/"/
[2024-06-30 16:54:31] INFO: Server is running on port 80. Looking for appointments every 180 seconds.
[2024-06-30 16:54:31] WARNING: Got 403 error. Checking in 180 seconds

403 Forbidden isn't exactly what I would expect.
I checked

https://service.berlin.de/terminvereinbarung/termin/all/

Which return 404 online. So I am wondering is this script and project out of date or am I missing something here.

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

1 participant