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

Bot crasha se não houver um <div id="posts"> no site da PRA #2

Open
saadbruno opened this issue Aug 4, 2019 · 0 comments
Open

Bot crasha se não houver um <div id="posts"> no site da PRA #2

saadbruno opened this issue Aug 4, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@saadbruno
Copy link
Owner

Hoje cedo o site da pra estava offline "Erro com conexão ao banco de dados"

O bot não achou a div "posts", e por causa disso, crashou. O Docker reiniciou automaticamente, mas mesmo assim é bom corrigir esse problema.

Log:

/usr/src/app/index.js:30
        var cardapioParse = cardapio.querySelector('#post').structuredText;
                                                           ^

TypeError: Cannot read property 'structuredText' of null
    at parseCardapio (/usr/src/app/index.js:30:53)
    at Request._callback (/usr/src/app/index.js:17:13)
    at Request.self.callback (/usr/src/app/node_modules/request/request.js:185:22)
    at Request.emit (events.js:196:13)
    at Request.<anonymous> (/usr/src/app/node_modules/request/request.js:1161:10)
    at Request.emit (events.js:196:13)
    at IncomingMessage.<anonymous> (/usr/src/app/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (events.js:284:20)
    at IncomingMessage.emit (events.js:201:15)
    at endReadableNT (_stream_readable.js:1130:12)
@saadbruno saadbruno added the bug Something isn't working label Aug 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant