justinkalland/protonmail-api

trying to send mail using the given code.

Closed this issue · 7 comments

node -v
v13.9.0

typeof(ProtonMail(node:13204) UnhandledPromiseRejectionWarning: TimeoutError: waiting for selector "#ptSidebar" failed: timeout 30000ms eptceeded
at new WaitTask (/Users/pt/code/node_modules/puppeteer/lib/DOMWorld.js:388:34)
at DOMWorld._waitForSelectorOrptPath (/Users/pt/code/node_modules/puppeteer/lib/DOMWorld.js:313:26)
at DOMWorld.waitForSelector (/Users/pt/code/node_modules/puppeteer/lib/DOMWorld.js:296:21)
at Frame.waitForSelector (/Users/pt/code/node_modules/puppeteer/lib/FrameManager.js:384:51)
at Frame. (/Users/pt/code/node_modules/puppeteer/lib/helper.js:95:27)
at Page.waitForSelector (/Users/pt/code/node_modules/puppeteer/lib/Page.js:799:33)
at ProtonMail._connect (/Users/pt/code/node_modules/protonmail-api/lib/proton-mail.js:59:16)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Function.connect (/Users/pt/code/node_modules/protonmail-api/lib/proton-mail.js:30:5)
at async repl:2:14

This error is caused by the new Protonmail redesign which changed the HTML. I just submitted a Pull Request (#72).

But as this Repo seems to be unmaintained I also published @jim-fx/protonmail-api which contains the fix.

Cheers, Jim

Sorry, this repo is something I started long ago for my own uses, but stopped using. I will merge the change, thanks @jim-fx

No worries, thank you for the awesome work :)

For transparency: I emailed @jim-fx and asked if he wanted to officially take over the project. If he agrees I will transfer it to him along with the NPM protonmail-api. I would like to see the project continuing living but don't have the bandwidth to maintain it.

cc @kksharma1618 @lTimeLordl

I suggest you to archive it and add a link in the README for an up to date fork.

This has been fixed on version 2.1.1

I suggest you to archive it and add a link in the README for an up to date fork.

Decided for now to keep this project maintained as-is