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

Not able to deploy it in remote servers #14

Closed
anthonylai opened this issue Feb 25, 2019 · 6 comments
Closed

Not able to deploy it in remote servers #14

anthonylai opened this issue Feb 25, 2019 · 6 comments

Comments

@anthonylai
Copy link

Attempt to run it in a remote server like heroku, encountered this error:

(node:9167) UnhandledPromiseRejectionWarning: Error: linkedin: manual check was required, verify if your login is properly working man
ually or report this issue: https://github.com/leonardiwagner/scrapedin/issues
at page.waitFor.then.catch (/var/app/current/node_modules/scrapedin/src/login.js:62:31)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:9167) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async
function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:9167) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not
handled will terminate the Node.js process with a non-zero exit code.
(node:9167) UnhandledPromiseRejectionWarning: Error: Protocol error (Runtime.callFunctionOn): Target closed.
at Promise (/var/app/current/node_modules/puppeteer/lib/Connection.js:183:56)
at new Promise ()
at CDPSession.send (/var/app/current/node_modules/puppeteer/lib/Connection.js:182:12)
at ExecutionContext.evaluateHandle (/var/app/current/node_modules/puppeteer/lib/ExecutionContext.js:106:44)
at ExecutionContext. (/var/app/current/node_modules/puppeteer/lib/helper.js:109:23)
at ElementHandle.$ (/var/app/current/node_modules/puppeteer/lib/JSHandle.js:378:50)
at ElementHandle. (/var/app/current/node_modules/puppeteer/lib/helper.js:109:23)
at DOMWorld.$ (/var/app/current/node_modules/puppeteer/lib/DOMWorld.js:114:34)
at process._tickCallback (internal/process/next_tick.js:68:7)
-- ASYNC --
at Frame. (/var/app/current/node_modules/puppeteer/lib/helper.js:108:27)
at Page.$ (/var/app/current/node_modules/puppeteer/lib/Page.js:300:29)
at Page. (/var/app/current/node_modules/puppeteer/lib/helper.js:109:23)
at page.waitFor.then.catch (/var/app/current/node_modules/scrapedin/src/login.js:60:16)
at process._tickCallback (internal/process/next_tick.js:68:7)

It is not possible to do manual verification as it is not possible to open a browser in such server and provide the verification. Is there any workaround to this issue?

@leonardiwagner
Copy link
Member

leonardiwagner commented Feb 27, 2019

Hi @anthonylai , the manual check is usually required only once when you use a new device (such as a remote server), and currently, there is no feature in this project that answers this manual check automatically.

If your server has a graphical interface you can include the isHeadless parameter as true in the scrapedin Object along email and password, then resolve the manual check, and after doing that you can go back to the headless mode. (Please also increase the waitTimeMs in the profileScraper function for wait the manual check completion)

@anthonylai
Copy link
Author

Thank you for the pointer. I have switched over to aws and can open up the browser to get pass the manual check.

leonardiwagner added a commit that referenced this issue Jun 12, 2019
@rizkiandrianto
Copy link

No fix for Heroku? @leonardiwagner @anthonylai ?

@leonardiwagner
Copy link
Member

garrettfritz pushed a commit to garrettfritz/scrapedin that referenced this issue May 20, 2020
@trns1997
Copy link

trns1997 commented Jun 2, 2020

Hi guys,
A bit late to the game but for those of you stuck with heroku deployment I can confirm that login via cookies works.

@leonardiwagner
Copy link
Member

Thank you for the feedback @trns1997 ! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants