stableway / anmeldung-berlin

This app will find and book any service.berlin.de appointment that can be booked online.
MIT License
113 stars 17 forks source link

MailSlurp waitForLatestEmail - "fetch failed" Error #15

Open daniel-cortez-stevenson opened 8 months ago

daniel-cortez-stevenson commented 8 months ago

When I run:

MAILSLURP_API_KEY=***  MAILSLURP_INBOX_ID=*** FORM_NAME="Bobby Brown" FORM_PHONE="0176 5555555" npm run debug

The booking fails while waiting for the email verification code with output like this:

...
2024-01-09 16:20:16 debug: Retrieving booking page for https://service.berlin.de/terminvereinbarung/termin/time/1709030880/169/ 
2024-01-09 16:20:19 debug: Filling booking form for https://service.berlin.de/terminvereinbarung/termin/time/1709030880/169/ 
2024-01-09 16:20:19 debug: Writing the configured phone number if the feature is available ... 
2024-01-09 16:20:19 debug: Reading all emails from MailSlurp inbox so we can wait for new unread emails ... 
2024-01-09 16:20:24 debug: Waiting for email verification code to arrive at inbox with id ... ... 
2024-01-09 16:21:25 error: Booking appointment failed at https://service.berlin.de/terminvereinbarung/termin/time/1709030880/169/: fetch failed 

~I am trying to run the program without setting MAILSLURP_INBOX_ID to see if that has any effect.~ Update: When I do not set MAILSLURP_INBOX_ID, everything works fine!

~No emails have been received to the specified inbox ... maybe this is related to #14 ?~ This is not related to the whitespace issue in #14

daniel-cortez-stevenson commented 8 months ago

~I'm also running behind a VPN, which might be impacting the MailSlurp API?~ I was able to run from behind a VPN when I did not set MAILSLURP_INBOX_ID

daniel-cortez-stevenson commented 8 months ago

Perhaps this issue is related to how I created a MailSlurp inbox via the MailSlurp web UI.