jasp402 / Easy-YOPmail

📮 YOPmail emails manager from an NPM NodeJS library
https://jasp402.github.io/Easy-YOPmail/starter-topic.html
18 stars 3 forks source link

Error: AxiosError: Request failed with status code 403 #6

Closed riyvd closed 1 year ago

riyvd commented 1 year ago

Hey ! When i try to getInbox of mail i have a axios error ^^


const easyYOPmail = require('easy-yopmail');
(async () => {
    let email = await easyYOPmail.getMail()
    let mail = await easyYOPmail.getInbox("test@yopmail.com")
    console.log(mail)
})();```
jasp402 commented 1 year ago

I have reviewed your code. in https://npm.runkit.com/easy-yopmail and it seems to work correctly if you use the most recent version. v4.0.12.

image

💡Suggestions:

I'm going to close this issue. if the problem persists you can open it again.

riyvd commented 1 year ago

Hello! I updated and it didn't change anything, I manually went to Yopmail and I wasn't blocked, and I checked if I had been blocked by a captcha and that wasn't the case either.

image image image
jasp402 commented 1 year ago

Looking at the image you shared, I realized that you are not using the Spanish (/ES/) version of YOPMail. And that led me to review the code. image Indeed it was assigned as a fixed value in the url and although it doesn't seem like this it affects the httprequests since the origin of the request is different.

NOTE: the version with the corrections of 4.0.16 If the problem persists try to provide more details. but i hope it works for you!