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

MailSlurp waitForLatestEmail - "fetch failed" Error #15

Open
daniel-cortez-stevenson opened this issue Jan 9, 2024 · 2 comments
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@daniel-cortez-stevenson
Copy link
Collaborator

daniel-cortez-stevenson commented Jan 9, 2024

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 daniel-cortez-stevenson added the bug Something isn't working label Jan 9, 2024
@daniel-cortez-stevenson
Copy link
Collaborator Author

daniel-cortez-stevenson commented Jan 9, 2024

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

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

@daniel-cortez-stevenson daniel-cortez-stevenson changed the title Fetch Failed Error MailSlurp waitForLatestEmail - "fetch failed" Error Jan 9, 2024
@daniel-cortez-stevenson daniel-cortez-stevenson added the help wanted Extra attention is needed label Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant