My app stopped working.. server 500 error
petdud
HOBBYOP

2 years ago

Hi,

I have my website xfrens.xyz - with API access to railway backend on twittens-backend project: aa0bac7b-0948-4ead-b7b1-b58657385360. I didn't do any changes for long time and somehow today all API requests from my front end to my backend reports 500 error.

When I access the backend code locally, it works fine, so only the backend deployed on railway stopped working and responding.

Could you please help?

For example this is API:

https://api.twittens.xyz/collections?select=slug,name,image.thumbnailUrl - when trying in browser, it also responses correctly but it doesn't response when accessing from xfrens.xyz

Thank you for your help,

Petr

4 Replies

petdud
HOBBYOP

2 years ago

Was there any update that could cause it? It's all APIs from the backend.. all my three projects that depends on them are down: xfrens.xyz, lensens.xyz and castfrens.xyz


petdud
HOBBYOP

2 years ago

From the api request I can see getting this strange error: cause: Error: unexpected end of file

at BrotliDecoder.zlibOnError [as onerror] (node:zlib:189:17) {

errno: -5,

code: 'Z_BUF_ERROR'

}


petdud
HOBBYOP

2 years ago

Ok I fixed it by adding compression to my package in backend and calling: app.use(compression() as express.RequestHandler);

but I would like to understand why it broke at the first place.. I didn't change any configuration


2 years ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.


Loading...