spasianspice
spasianspice
RRailway
Created by spasianspice on 6/6/2023 in #✋|help
503 (server) Error when I send GET request
I built a phone scraper for a personal assistant app usiing puppeteer. It runs locally but when I deploy it I get 503 errors. Here's the specific errors I get on diff GET: GET https://phone-scraper-production.up.railway.app/search HTTP/1.1 400 Bad Request x-powered-by: Express access-control-allow-origin: * content-type: application/json; charset=utf-8 content-length: 35 etag: W/"23-Z/nEQkTnjqNIEOkyXk5wBEV9AFg" date: Tue, 06 Jun 2023 19:14:38 GMT server: railway connection: close GET https://phone-scraper-production.up.railway.app/search?query=test&number=2 HTTP/1.1 503 Service Unavailable content-type: text/html x-railway-fallback: true content-length: 2942 date: Tue, 06 Jun 2023 19:13:35 GMT server: railway connection: close My project ID is f0c9e61c-b4bb-4387-be5b-939b5a0f9b9e
32 replies
RRailway
Created by spasianspice on 5/31/2023 in #✋|help
backup database snapshot reliably
I'm using HNSWlib-node to create an in-memory vector DB. My code writes it to a file when new embeddings are added or deleted. Basically, does railway save to the disk? because it might save as json... I've tended to find these providers throw away the disk after the server restarts with a fresh disk so it has to be sent somewhere or the disk can’t be ephemeral I want to hedge risk by making sure the DB gets backed up on exit too. So, my question is how do I make sure that this file gets saved again when the server is shut down for code updates?
40 replies