-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error getting cookies when reading emails #22
Comments
Hi, I've tried to replicate the error. The truth is that I don't see the cookie error, but I did see that the code you provided could be improved so that when the inbox is empty it stops the process and doesn't try to make an unnecessary loop. I did a test by leaving an email and your code worked correctly. const easyYopmail = require('easy-yopmail');
const AUTOMATION_EMAIL = '[email protected]';
easyYopmail.getInbox(AUTOMATION_EMAIL).then(emails => {
if (emails.inbox.length) {
console.log('You have messages in your inbox');
emails.inbox.forEach(msg => {
easyYopmail.readMessage(AUTOMATION_EMAIL, msg['id']).then(objMsg => {
console.log(objMsg);
});
});
} else {
console.log('You have no messages in your inbox');
}
}); Please validate what I'm telling you. And if you can, let me know so I can close this Issue. |
Hello @jasp402, Thank you for the quick response and for improving my code! Unfortunately, I am still experiencing the same error getting Cookies. Can you please tell me what version of Node.js you are using to run the code? |
@jasp402, it does not ask me for a Captcha right away, when I am getting access to my email. However, it asks for Captcha from time to time, when I am navigating through inboxes. |
In this case I don't see how they can be related. The cookie is not directly related to the re-captcha, it simply gets an empty message, but does not generate an error. I have tested the code you have provided me, I see it working correctly. Even using an online platform to test code online such as https://codesandbox.io/ |
@jasp402 thank you for looking into that! |
Sorry for the long absence and abandoning this issue @jasp402 |
Hello,
I am trying to read emails from YOPMail address using following code:
When I run this code, I am experiencing following error:
I am running easy-yopmail v5.1.0. Could it be a configuration issue? Any advice will be appreciated!
Sincerely,
Aleksei
The text was updated successfully, but these errors were encountered: