Giter VIP home page Giter VIP logo

stackoverflow-fanatic-badge's Introduction

Salut ! 👋         visitor badge

garsaud's Github Stats

stackoverflow-fanatic-badge's People

Contributors

artotim avatar dependabot[bot] avatar garsaud avatar

Stargazers

 avatar

Watchers

 avatar  avatar

stackoverflow-fanatic-badge's Issues

Script cannot determine fs-caption

When running the script I get the following error

Loading profile page
Grabbing stats
(node:6) UnhandledPromiseRejectionWarning: TimeoutError: waiting for selector "#top-cards span.fs-caption" failed: timeout 30000ms exceeded
    at new WaitTask (/node_modules/puppeteer/lib/FrameManager.js:991:28)
    at Frame._waitForSelectorOrXPath (/node_modules/puppeteer/lib/FrameManager.js:882:12)
    at Frame.waitForSelector (/node_modules/puppeteer/lib/FrameManager.js:836:17)
    at Page.waitForSelector (/node_modules/puppeteer/lib/Page.js:1031:29)
    at crawl (/app.js:50:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:6) 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: 1)
(node:6) [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.

Timeout/UnhandledPromiseRejectionWarning on StackOverflow Login Form

Issue description

I'm trying to get this bot running properly and got this issue since April 5th (according to the logs)

Steps to reproduce the issue

  1. Get the docker image running according to the setup path and have a valid login,password & mailgun config.
  2. use the docker run command

What's the expected result?

  • That the bot will log in on stackoverflow and count for the consecutive days, all the way to the fanatic badge.

What's the actual result?

This is one of the sets of logs items. The rejection id at the end is different every time:

Loading https://stackoverflow.com/users/login
 -> success!
Filling login form with credentials
(node:9) UnhandledPromiseRejectionWarning: TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded
    at /node_modules/puppeteer/lib/LifecycleWatcher.js:143:21
    at async FrameManager.waitForFrameNavigation (/node_modules/puppeteer/lib/FrameManager.js:120:19)
    at async Frame.waitForNavigation (/node_modules/puppeteer/lib/FrameManager.js:393:12)
    at async Page.waitForNavigation (/node_modules/puppeteer/lib/Page.js:676:12)
    at async Promise.all (index 1)
    at async crawl (/app.js:47:5)
  -- ASYNC --
    at Frame.<anonymous> (/node_modules/puppeteer/lib/helper.js:108:27)
    at Page.waitForNavigation (/node_modules/puppeteer/lib/Page.js:676:49)
    at Page.<anonymous> (/node_modules/puppeteer/lib/helper.js:109:23)
    at crawl (/app.js:49:14)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:9) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.