R
Railwayβ€’8mo ago
Luis Kurihara

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
Percy
Percyβ€’8mo ago
Project ID: 90126b32-7716-4f6e-8326-00312abc6db6
Luis Kurihara
Luis KuriharaOPβ€’8mo ago
90126b32-7716-4f6e-8326-00312abc6db6
Fragly
Fraglyβ€’8mo ago
That's weird, what node version are you using locally?
Luis Kurihara
Luis KuriharaOPβ€’8mo ago
Node.js v20.11.1
Luis Kurihara
Luis KuriharaOPβ€’8mo ago
Attacler/Bart
Attacler/Bartβ€’8mo ago
can you share your code? (snippet is enough) of where you are calling the url?
Luis Kurihara
Luis KuriharaOPβ€’8mo ago
it is simple for with trycatch
Attacler/Bart
Attacler/Bartβ€’8mo ago
you do realise that the code breaks at line 18? you dont have any try catches there
Luis Kurihara
Luis KuriharaOPβ€’8mo ago
did you dowladed the code? sorry i send other is this
Luis Kurihara
Luis KuriharaOPβ€’8mo ago
Attacler/Bart
Attacler/Bartβ€’8mo ago
there is no call happening in that script on line 18 πŸ‘€
Luis Kurihara
Luis KuriharaOPβ€’8mo ago
await auctions.forEach(auction => { linksData.push(auction.link) }); this?
Attacler/Bart
Attacler/Bartβ€’8mo ago
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
Luis Kurihara
Luis KuriharaOPβ€’8mo ago
what domain you are telling? i m using sequelize model this funtions is adding a link column who are on db
Attacler/Bart
Attacler/Bartβ€’8mo ago
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"
Medim
Medimβ€’8mo ago
I wonder if CAIXA (that is a gov website) blocks or has some issues with connections from other countries :squigglethink:
Luis Kurihara
Luis KuriharaOPβ€’8mo ago
Yesterday it was working just fine today it stopped if i put a proxy in brazil it should work no?
Medim
Medimβ€’8mo ago
If that's the case, yes. But i'm not sure
Luis Kurihara
Luis KuriharaOPβ€’8mo ago
It's a website with public information, everybody gets it
gridonyx
gridonyxβ€’8mo ago
maybe some user-agent blocking type thing
ThallesComH
ThallesComHβ€’8mo ago
try adding .catch to your page.goto.
Luis Kurihara
Luis KuriharaOPβ€’8mo ago
okay i will ty tryy thanks guys!!
Want results from more Discord servers?
Add your server