Railway crashed after errors on trycatch?
Is there any parameter to change in Railway so that it doesn't crash? because I'm using a trycatch that will give a lot of error when it doesn't load a site and the system is crashing on the server... Locally Maintains Normal
im using a loop (for) with try catch and like , 5 catch the system crashed , why?
22 Replies
Project ID:
90126b32-7716-4f6e-8326-00312abc6db6
90126b32-7716-4f6e-8326-00312abc6db6
That's weird, what node version are you using locally?
Node.js v20.11.1
can you share your code? (snippet is enough) of where you are calling the url?
it is simple for with trycatch
you do realise that the code breaks at line 18?
you dont have any try catches there
did you dowladed the code?
sorry
i send other
is this
there is no call happening in that script on line 18 π
await auctions.forEach(auction => {
linksData.push(auction.link)
});
this?
thats not doing anything apart from adding links/strings to an array, where the await isnt even needed
main problem you have is that Railway cannot connect to the domain you want to reach
what domain you are telling?
i m using sequelize model
this funtions is adding a link column who are on db
please see the error message
"page.goto: net::ERR_NAME_NOT_RESOLVED at https://venda-imoveis.caixa.gov.br/sistema/busca-imovel.asp?sltTipoBusca=imoveis"
I wonder if CAIXA (that is a gov website) blocks or has some issues with connections from other countries :squigglethink:
Yesterday it was working just fine today it stopped
if i put a proxy in brazil it should work no?
If that's the case, yes. But i'm not sure
It's a website with public information, everybody gets it
maybe some user-agent blocking type thing
try adding .catch to your page.goto.
okay
i will ty
tryy
thanks guys!!