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